diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-05-16 00:01:08 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-05-16 00:01:08 +0200 |
commit | 4566e172eb2423bdcec68babde907cd06e8fc997 (patch) | |
tree | 697f14694d44908670baa221d20b311c4d7294e0 /libpwdgrp/uidgid_get.c | |
parent | e0238f852b7a492581414b5aecb8a438f2fc4c77 (diff) | |
download | busybox-w32-4566e172eb2423bdcec68babde907cd06e8fc997.tar.gz busybox-w32-4566e172eb2423bdcec68babde907cd06e8fc997.tar.bz2 busybox-w32-4566e172eb2423bdcec68babde907cd06e8fc997.zip |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpwdgrp/uidgid_get.c b/libpwdgrp/uidgid_get.c index 92290bfdb..8388be0da 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) | |||
71 | } | 71 | } |
72 | } | 72 | } |
73 | gr = getgrnam(group); | 73 | gr = getgrnam(group); |
74 | if (!gr) return 0; | 74 | if (!gr) |
75 | return 0; | ||
75 | u->gid = gr->gr_gid; | 76 | u->gid = gr->gr_gid; |
76 | } | 77 | } |
77 | return 1; | 78 | return 1; |