The Unix Heritage Society mailing list
 help / color / Atom feed
* [TUHS] FreeBSD retires gets()!
@ 2019-11-26 21:59 Norman Wilson
  2019-11-26 22:31 ` George Michaelson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Norman Wilson @ 2019-11-26 21:59 UTC (permalink / raw)
  To: tuhs

We retired gets from Research UNIX back in 1984 or perhaps
earlier, with no serious pain because replacing it wasn't
hard and everybody agreed with the reason.

I'm glad to hear some part of the rest of the world is
catching up.

We also decided to retire the old Enigma-derived crypt(1),
except we didn't want to throw it out entirely in case
someone had an old encrypted file and wanted the contents
back.  So it was removed from the manual and the binary
moved to /usr/games.

Norman Wilson
Toronto ON

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [TUHS] FreeBSD retires gets()!
  2019-11-26 21:59 [TUHS] FreeBSD retires gets()! Norman Wilson
@ 2019-11-26 22:31 ` George Michaelson
  2019-11-26 22:32 ` Dave Horsfall
  2019-11-26 23:06 ` Katherine Barto
  2 siblings, 0 replies; 7+ messages in thread
From: George Michaelson @ 2019-11-26 22:31 UTC (permalink / raw)
  To: Norman Wilson; +Cc: The Eunuchs Hysterical Society

I have managed to forget most of my C issues, but "does it gobble the
\n or does it leave the \n" sticks, because gets() was bound into it,
and because Python perpetuates it in line-mode reading.

On Wed, Nov 27, 2019 at 8:00 AM Norman Wilson <norman@oclsc.org> wrote:
>
> We retired gets from Research UNIX back in 1984 or perhaps
> earlier, with no serious pain because replacing it wasn't
> hard and everybody agreed with the reason.
>
> I'm glad to hear some part of the rest of the world is
> catching up.
>
> We also decided to retire the old Enigma-derived crypt(1),
> except we didn't want to throw it out entirely in case
> someone had an old encrypted file and wanted the contents
> back.  So it was removed from the manual and the binary
> moved to /usr/games.
>
> Norman Wilson
> Toronto ON

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [TUHS] FreeBSD retires gets()!
  2019-11-26 21:59 [TUHS] FreeBSD retires gets()! Norman Wilson
  2019-11-26 22:31 ` George Michaelson
@ 2019-11-26 22:32 ` Dave Horsfall
  2019-11-26 23:29   ` Richard Salz
  2019-11-26 23:06 ` Katherine Barto
  2 siblings, 1 reply; 7+ messages in thread
From: Dave Horsfall @ 2019-11-26 22:32 UTC (permalink / raw)
  To: The Eunuchs Hysterical Society

On Tue, 26 Nov 2019, Norman Wilson wrote:

> We retired gets from Research UNIX back in 1984 or perhaps earlier, with 
> no serious pain because replacing it wasn't hard and everybody agreed 
> with the reason.

Interesting...  Then again,. you weren't bound by POSIX :-)

> I'm glad to hear some part of the rest of the world is catching up.

The wheels grind slowly...

> We also decided to retire the old Enigma-derived crypt(1), except we 
> didn't want to throw it out entirely in case someone had an old 
> encrypted file and wanted the contents back.  So it was removed from the 
> manual and the binary moved to /usr/games.

Back in the Usenet days, somebody posted the Cryptobreakers Workbench (?) 
which was designed to work with crypt-encrypted files; it's probably still 
around somewhere...  Fairly easy to break as I recall, because it emulated 
a single-rotor Enigma.

-- Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [TUHS] FreeBSD retires gets()!
  2019-11-26 21:59 [TUHS] FreeBSD retires gets()! Norman Wilson
  2019-11-26 22:31 ` George Michaelson
  2019-11-26 22:32 ` Dave Horsfall
@ 2019-11-26 23:06 ` Katherine Barto
  2 siblings, 0 replies; 7+ messages in thread
From: Katherine Barto @ 2019-11-26 23:06 UTC (permalink / raw)
  To: Norman Wilson; +Cc: tuhs

On Nov 26, 2019, at 1:59 PM, Norman Wilson <norman@oclsc.org> wrote:
> 
> We also decided to retire the old Enigma-derived crypt(1),
> except we didn't want to throw it out entirely in case
> someone had an old encrypted file and wanted the contents
> back.  So it was removed from the manual and the binary
> moved to /usr/games.

I particularly like that the old crypt was reduced to a game.

	David

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [TUHS] FreeBSD retires gets()!
  2019-11-26 22:32 ` Dave Horsfall
@ 2019-11-26 23:29   ` Richard Salz
  2019-11-27  0:29     ` Dave Horsfall
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Salz @ 2019-11-26 23:29 UTC (permalink / raw)
  To: Dave Horsfall; +Cc: The Eunuchs Hysterical Society

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

On Tue, Nov 26, 2019 at 5:33 PM Dave Horsfall <dave@horsfall.org> wrote:

> Back in the Usenet days, somebody posted the Cryptobreakers Workbench (?)
>

Bob Baldwin, comp.sources.unix volume 10; now available at
https://github.com/AlbertVeli/cbw

[-- Attachment #2: Type: text/html, Size: 628 bytes --]

<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 26, 2019 at 5:33 PM Dave Horsfall &lt;<a href="mailto:dave@horsfall.org">dave@horsfall.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Back in the Usenet days, somebody posted the Cryptobreakers Workbench (?) <br></blockquote><div><br></div><div>Bob Baldwin, comp.sources.unix volume 10; now available at <a href="https://github.com/AlbertVeli/cbw">https://github.com/AlbertVeli/cbw</a></div><br></div></div>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [TUHS] FreeBSD retires gets()!
  2019-11-26 23:29   ` Richard Salz
@ 2019-11-27  0:29     ` Dave Horsfall
  0 siblings, 0 replies; 7+ messages in thread
From: Dave Horsfall @ 2019-11-27  0:29 UTC (permalink / raw)
  To: The Eunuchs Hysterical Society

On Tue, 26 Nov 2019, Richard Salz wrote:

> > Back in the Usenet days, somebody posted the Cryptobreakers Workbench 
> > (?)
> 
> Bob Baldwin, comp.sources.unix volume 10; now available at
> https://github.com/AlbertVeli/cbw

Thanks!

-- Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [TUHS] FreeBSD retires gets()!
@ 2019-11-26 21:10 Dave Horsfall
  0 siblings, 0 replies; 7+ messages in thread
From: Dave Horsfall @ 2019-11-26 21:10 UTC (permalink / raw)
  To: The Eunuchs Hysterical Society

Seen in the FreeBSD Quarterly Report:

gets(3) retirement

    Contact: Ed Maste <emaste@FreeBSD.org>

    gets is an obsolete C library routine for reading a string from
    standard input. It was removed from the C standard as of C11 because
    there was no way to use it safely. Prompted by a comment during Paul
    Vixie's talk at vBSDCon 2017 I started investigating what it would take
    to remove gets from libc.

    The patch was posted to Phabricator and refined several times, and the
    portmgr team performed several exp-runs to identify ports broken by the
    removal. Symbol versioning is used to preserve binary compatibility for
    existing software that uses gets.

    The change was committed in September, and will be in FreeBSD 13.0.

    This project was sponsored by The FreeBSD Foundation.

And the world is a slightly safer place...

-- Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, back to index

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 21:59 [TUHS] FreeBSD retires gets()! Norman Wilson
2019-11-26 22:31 ` George Michaelson
2019-11-26 22:32 ` Dave Horsfall
2019-11-26 23:29   ` Richard Salz
2019-11-27  0:29     ` Dave Horsfall
2019-11-26 23:06 ` Katherine Barto
  -- strict thread matches above, loose matches on Subject: below --
2019-11-26 21:10 Dave Horsfall

The Unix Heritage Society mailing list

Archives are clonable: git clone --mirror http://inbox.vuxu.org/tuhs

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.tuhs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git