From 6cee58e9cfedfa09ede3f5499eb5f635fc2bb77c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 4 Nov 2007 15:43:26 +0000 Subject: Announce 1.8.0 --- loginutils/adduser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loginutils') diff --git a/loginutils/adduser.c b/loginutils/adduser.c index e91417a..a859f4b 100644 --- a/loginutils/adduser.c +++ b/loginutils/adduser.c @@ -35,7 +35,7 @@ static void passwd_study(struct passwd *p) /* check for a free uid (and maybe gid) */ while (getpwuid(p->pw_uid) || (!p->pw_gid && getgrgid(p->pw_uid))) p->pw_uid++; - + if (!p->pw_gid) { /* new gid = uid */ p->pw_gid = p->pw_uid; @@ -146,7 +146,7 @@ int adduser_main(int argc, char **argv) if (mkdir(pw.pw_dir, 0755) || chown(pw.pw_dir, pw.pw_uid, pw.pw_gid) || chmod(pw.pw_dir, 02755) /* set setgid bit on homedir */ - ) { + ) { bb_simple_perror_msg(pw.pw_dir); } } -- cgit v1.1