diff options
-rw-r--r-- | utils/ChangeLog | 5 | ||||
-rw-r--r-- | utils/login.c | 4 |
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. */ |