aboutsummaryrefslogtreecommitdiff
path: root/libbb/update_passwd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-12-23 02:42:26 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-12-23 02:42:26 +0100
commit9cc3d3ab21eb8b4766b71dffb04132184c754f7b (patch)
tree11ebefbc2a008c9479110177d97c346893ba4d82 /libbb/update_passwd.c
parent7c5dea399b16341ead146cb86eb4f6cde031a12d (diff)
downloadbusybox-w32-9cc3d3ab21eb8b4766b71dffb04132184c754f7b.tar.gz
busybox-w32-9cc3d3ab21eb8b4766b71dffb04132184c754f7b.tar.bz2
busybox-w32-9cc3d3ab21eb8b4766b71dffb04132184c754f7b.zip
fix breakage found by mass one-applet builds
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/update_passwd.c')
-rw-r--r--libbb/update_passwd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/update_passwd.c b/libbb/update_passwd.c
index 6255af492..95423d19b 100644
--- a/libbb/update_passwd.c
+++ b/libbb/update_passwd.c
@@ -180,6 +180,7 @@ int FAST_FUNC update_passwd(const char *filename,
180 if (!line) /* EOF/error */ 180 if (!line) /* EOF/error */
181 break; 181 break;
182 182
183#if ENABLE_FEATURE_ADDUSER_TO_GROUP || ENABLE_FEATURE_DEL_USER_FROM_GROUP
183 if (!name && member) { 184 if (!name && member) {
184 /* Delete member from all groups */ 185 /* Delete member from all groups */
185 /* line is "GROUP:PASSWD:[member1[,member2]...]" */ 186 /* line is "GROUP:PASSWD:[member1[,member2]...]" */
@@ -209,6 +210,7 @@ int FAST_FUNC update_passwd(const char *filename,
209 fprintf(new_fp, "%s\n", line); 210 fprintf(new_fp, "%s\n", line);
210 goto next; 211 goto next;
211 } 212 }
213#endif
212 214
213 cp = is_prefixed_with(line, name_colon); 215 cp = is_prefixed_with(line, name_colon);
214 if (!cp) { 216 if (!cp) {