* [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
* [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, other threads:[~2019-11-27 0:29 UTC | newest]
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).