summaryrefslogtreecommitdiff
path: root/libpwdgrp/uidgid_get.c
diff options
context:
space:
mode:
authorDenys Vlasenko2011-05-16 00:01:08 +0200
committerDenys Vlasenko2011-05-16 00:01:08 +0200
commit4566e172eb2423bdcec68babde907cd06e8fc997 (patch)
tree697f14694d44908670baa221d20b311c4d7294e0 /libpwdgrp/uidgid_get.c
parente0238f852b7a492581414b5aecb8a438f2fc4c77 (diff)
downloadbusybox-4566e172eb2423bdcec68babde907cd06e8fc997.zip
busybox-4566e172eb2423bdcec68babde907cd06e8fc997.tar.gz
simplify parsing of /etc/busybox.conf
function old new delta parse_config_file 799 667 -132 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libpwdgrp/uidgid_get.c')
-rw-r--r--libpwdgrp/uidgid_get.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpwdgrp/uidgid_get.c b/libpwdgrp/uidgid_get.c
index 92290bf..8388be0 100644
--- a/libpwdgrp/uidgid_get.c
+++ b/libpwdgrp/uidgid_get.c
@@ -71,7 +71,8 @@ int FAST_FUNC get_uidgid(struct bb_uidgid_t *u, const char *ug, int numeric_ok)
}
}
gr = getgrnam(group);
- if (!gr) return 0;
+ if (!gr)
+ return 0;
u->gid = gr->gr_gid;
}
return 1;