diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-29 19:25:45 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-29 19:25:45 +0000 |
commit | 15ca51e3e2a31efc275b616106244d8ec3f8f773 (patch) | |
tree | e54716fcb612a54cfa72564d9ef089eebe92acbd /loginutils/addgroup.c | |
parent | 5a28a25b9dd81e0975532458723c4244ff532e58 (diff) | |
download | busybox-w32-15ca51e3e2a31efc275b616106244d8ec3f8f773.tar.gz busybox-w32-15ca51e3e2a31efc275b616106244d8ec3f8f773.tar.bz2 busybox-w32-15ca51e3e2a31efc275b616106244d8ec3f8f773.zip |
appletlib.c: make it actally follow _BB_SUID_ALWAYS rules
adduser: implement -S and code shrink / fix uid selection
*: sanitize getspnam_r use
text data bss dec hex filename
777042 974 9676 787692 c04ec busybox_old
776883 974 9676 787533 c044d busybox_unstripped
Diffstat (limited to 'loginutils/addgroup.c')
-rw-r--r-- | loginutils/addgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c index 9b2c6790f..31e507045 100644 --- a/loginutils/addgroup.c +++ b/loginutils/addgroup.c | |||
@@ -56,7 +56,7 @@ static void new_group(char *group, gid_t gid) | |||
56 | /* add entry to group */ | 56 | /* add entry to group */ |
57 | file = xfopen(bb_path_group_file, "a"); | 57 | file = xfopen(bb_path_group_file, "a"); |
58 | /* group:passwd:gid:userlist */ | 58 | /* group:passwd:gid:userlist */ |
59 | fprintf(file, "%s:x:%d:\n", group, gr.gr_gid); | 59 | fprintf(file, "%s:x:%u:\n", group, (unsigned)gr.gr_gid); |
60 | if (ENABLE_FEATURE_CLEAN_UP) | 60 | if (ENABLE_FEATURE_CLEAN_UP) |
61 | fclose(file); | 61 | fclose(file); |
62 | #if ENABLE_FEATURE_SHADOWPASSWDS | 62 | #if ENABLE_FEATURE_SHADOWPASSWDS |