summaryrefslogtreecommitdiff
path: root/utils/login.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-14 13:51:50 +0000
committerMiles Bader <miles@gnu.org>1996-05-14 13:51:50 +0000
commit9fd9e2b19295f338499888395d1bc377e6d03ec1 (patch)
tree60fd8ff2327d6457766c84b3983056d22d98e231 /utils/login.c
parentfddb9a19696ce0e809fb8b1f48b7b69c34a5ae6b (diff)
(main): Only allow real users to make new login collections.
Diffstat (limited to 'utils/login.c')
-rw-r--r--utils/login.c3
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)