diff options
author | Miles Bader <miles@gnu.org> | 1996-05-14 13:51:50 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-14 13:51:50 +0000 |
commit | 9fd9e2b19295f338499888395d1bc377e6d03ec1 (patch) | |
tree | 60fd8ff2327d6457766c84b3983056d22d98e231 /utils/login.c | |
parent | fddb9a19696ce0e809fb8b1f48b7b69c34a5ae6b (diff) |
(main): Only allow real users to make new login collections.
Diffstat (limited to 'utils/login.c')
-rw-r--r-- | utils/login.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/login.c b/utils/login.c index 61813228..5856d79c 100644 --- a/utils/login.c +++ b/utils/login.c @@ -752,7 +752,8 @@ main(int argc, char *argv[]) if (err) fail (3, err, "Authentication failure", 0); - if (! no_login) + if (!no_login && parent_uids->num > 0) + /* Make a new login collection (but only for real users). */ { char *user = envz_get (args, args_len, "USER"); if (user && *user) |