aboutsummaryrefslogtreecommitdiff
path: root/libpwdgrp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-09-07 23:22:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-09-07 23:22:08 +0000
commit8d89bed8401bfbca9c5ef18f201439b3502e733b (patch)
treeb5db7bd373d32b4891610cd2c58f6307d4808447 /libpwdgrp
parentee9deb863e089e1b607cc5771123257c3223bea0 (diff)
downloadbusybox-w32-8d89bed8401bfbca9c5ef18f201439b3502e733b.tar.gz
busybox-w32-8d89bed8401bfbca9c5ef18f201439b3502e733b.tar.bz2
busybox-w32-8d89bed8401bfbca9c5ef18f201439b3502e733b.zip
watchdog: add -T option
function old new delta watchdog_main 159 219 +60 mdev: support match by major,minor. See bug 4714. +100 bytes.
Diffstat (limited to 'libpwdgrp')
-rw-r--r--libpwdgrp/uidgid_get.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libpwdgrp/uidgid_get.c b/libpwdgrp/uidgid_get.c
index ebc7fc58c..92290bfdb 100644
--- a/libpwdgrp/uidgid_get.c
+++ b/libpwdgrp/uidgid_get.c
@@ -87,15 +87,12 @@ void FAST_FUNC xget_uidgid(struct bb_uidgid_t *u, const char *ug)
87 * ":group" sets gid only 87 * ":group" sets gid only
88 * "user:" sets uid and gid (to user's primary group id) 88 * "user:" sets uid and gid (to user's primary group id)
89 * "user:group" sets uid and gid 89 * "user:group" sets uid and gid
90 * ('unset' uid or gid is actually set to -1) 90 * ('unset' uid or gid retains the value it has on entry)
91 */ 91 */
92void FAST_FUNC parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group) 92void FAST_FUNC parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group)
93{ 93{
94 char *group; 94 char *group;
95 95
96 u->uid = -1;
97 u->gid = -1;
98
99 /* Check if there is a group name */ 96 /* Check if there is a group name */
100 group = strchr(user_group, '.'); /* deprecated? */ 97 group = strchr(user_group, '.'); /* deprecated? */
101 if (!group) 98 if (!group)