aboutsummaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-28 05:44:47 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-28 05:44:47 +0000
commit5a4b69f8a10fff8f08a97e0dd4b6de40d36f671f (patch)
tree34292ef12cab59b118e91a6c58844ae25f1bee94 /debianutils
parentd823e460f09b4f6e77cf07670dececfddafafd04 (diff)
downloadbusybox-w32-5a4b69f8a10fff8f08a97e0dd4b6de40d36f671f.tar.gz
busybox-w32-5a4b69f8a10fff8f08a97e0dd4b6de40d36f671f.tar.bz2
busybox-w32-5a4b69f8a10fff8f08a97e0dd4b6de40d36f671f.zip
bb_xget[pw/gr]nam were horribly misnamed - fixed.
uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam git-svn-id: svn://busybox.net/trunk/busybox@17095 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'debianutils')
-rw-r--r--debianutils/start_stop_daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c
index d1f5e94c0..521b43d04 100644
--- a/debianutils/start_stop_daemon.c
+++ b/debianutils/start_stop_daemon.c
@@ -274,7 +274,7 @@ int start_stop_daemon_main(int argc, char **argv)
274 if (userspec) { 274 if (userspec) {
275 user_id = bb_strtou(userspec, NULL, 10); 275 user_id = bb_strtou(userspec, NULL, 10);
276 if (errno) 276 if (errno)
277 user_id = bb_xgetpwnam(userspec); 277 user_id = xuname2uid(userspec);
278 } 278 }
279 279
280 if (opt & CTX_STOP) { 280 if (opt & CTX_STOP) {
@@ -305,7 +305,7 @@ int start_stop_daemon_main(int argc, char **argv)
305 if (chuid) { 305 if (chuid) {
306 user_id = bb_strtou(chuid, NULL, 10); 306 user_id = bb_strtou(chuid, NULL, 10);
307 if (errno) 307 if (errno)
308 user_id = bb_xgetpwnam(chuid); 308 user_id = xuname2uid(chuid);
309 xsetuid(user_id); 309 xsetuid(user_id);
310 } 310 }
311#if ENABLE_FEATURE_START_STOP_DAEMON_FANCY 311#if ENABLE_FEATURE_START_STOP_DAEMON_FANCY