From 4770dce698e6c6526e6383e1b426c5f8bcaad869 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 19 Feb 1999 07:46:51 +0000 Subject: Fri Feb 19 02:43:11 1999 Thomas Bushnell, BSG * login.c (main): When transitioning from no UID's to having UID's create a new session like normal. Reported by Mark M. Kettenis . --- utils/login.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/login.c') 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"); -- cgit v1.2.3