1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-02 05:52:36 +02:00

merge with 1.9

This commit is contained in:
Jim Meyering
1993-11-09 13:21:32 +00:00
parent 2d0c47b8aa
commit a1b9bc9a42
4 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ void *alloca ();
#undef timezone /* needed for sgi */
#endif
#if defined(HAVE_SYS_TIMEB_H) || (!defined(USG) && defined(HAVE_FTIME))
#if defined(HAVE_SYS_TIMEB_H)
#include <sys/timeb.h>
#else
/*
+7
View File
@@ -1,3 +1,10 @@
Mon Nov 08 23:16:36 1993 Jim Meyering (meyering@comco.com)
* Version 1.9.
* su.c (correct_password): Report an error and fail if getpass
returns NULL.
Tue Nov 02 01:14:21 1993 Jim Meyering (meyering@comco.com)
* acconfig.h: Add comments.
+1
View File
@@ -1,4 +1,5 @@
Major changes in release 1.9:
* su fails gracefully when getpass is unable to open /dev/tty.
* printenv and tty detect and report write errors
* fix bug in stty
* stty supports accepts the new options status and flush on systems that
+5
View File
@@ -331,6 +331,11 @@ correct_password (pw)
return 1;
unencrypted = getpass ("Password:");
if (unencrypted == NULL)
{
error (0, 0, "getpass: cannot open /dev/tty");
return 0;
}
encrypted = crypt (unencrypted, correct);
bzero (unencrypted, strlen (unencrypted));
return strcmp (encrypted, correct) == 0;