summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/ChangeLog6
-rw-r--r--utils/login.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/utils/ChangeLog b/utils/ChangeLog
index 09103646..a4d4e60c 100644
--- a/utils/ChangeLog
+++ b/utils/ChangeLog
@@ -1,3 +1,9 @@
+Fri Feb 19 02:43:11 1999 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * login.c (main): When transitioning from no UID's to having UID's
+ create a new session like normal. Reported by Mark M. Kettenis
+ <kettenis@wins.uva.nl>.
+
1999-02-06 Mark Kettenis <kettenis@gnu.org>
* login.c (main): If no effective uid, really use first auxiliary
diff --git a/utils/login.c b/utils/login.c
index 26407e7d..f5d7da4e 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -646,7 +646,9 @@ main(int argc, char *argv[])
err = proc_getsid (proc_server, pid, &sid);
assert_perror (err); /* This should never fail. */
- if (!no_login && parent_uids.num != 0)
+ if (!no_login
+ && (parent_uids.num != 0
+ || ugids.eff_uids.num + ugids.avail_uids.num > 0))
/* Make a new login collection (but only for real users). */
{
char *user = envz_get (args, args_len, "USER");