summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-10 04:52:21 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-10 04:52:21 +0000
commitf767af5ecc0a272f706c5c02e45c6c25f7a3a654 (patch)
treea62d8f71585ed09beb8e0cb00b12f546612e03a3 /utils
parentab15e243cf9e178d7cee23b0ccfa6bd110aa1f18 (diff)
1999-02-06 Mark Kettenis <kettenis@gnu.org>
* login.c (main): If no effective uid, really use first auxiliary uid to use as password entry to get parameters from.
Diffstat (limited to 'utils')
-rw-r--r--utils/ChangeLog5
-rw-r--r--utils/login.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/utils/ChangeLog b/utils/ChangeLog
index dcb42e2e..09103646 100644
--- a/utils/ChangeLog
+++ b/utils/ChangeLog
@@ -1,3 +1,8 @@
+1999-02-06 Mark Kettenis <kettenis@gnu.org>
+
+ * login.c (main): If no effective uid, really use first auxiliary
+ uid to use as password entry to get parameters from.
+
1999-01-03 Roland McGrath <roland@baalperazim.frob.com>
* syncfs.c: Replace -a/--asynchronous with -s/--synchronous.
diff --git a/utils/login.c b/utils/login.c
index 02542ae2..26407e7d 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -1,6 +1,6 @@
/* Hurdish login
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -615,7 +615,7 @@ main(int argc, char *argv[])
if (ugids.eff_uids.num > 0)
pw = getpwuid (ugids.eff_uids.ids[0]); /* Effective uid */
else if (ugids.avail_uids.num > 0)
- pw = getpwuid (ugids.eff_uids.ids[0]); /* Auxiliary uid */
+ pw = getpwuid (ugids.avail_uids.ids[0]); /* Auxiliary uid */
else
/* No user! Try to used the `not-logged-in' user to set various
parameters. */