From 9fd9e2b19295f338499888395d1bc377e6d03ec1 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Tue, 14 May 1996 13:51:50 +0000 Subject: (main): Only allow real users to make new login collections. --- utils/login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3