diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-26 22:47:42 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-26 22:47:42 +0000 |
commit | cce38586aee7fe892ca1c837ee08a96bd3454ee9 (patch) | |
tree | 2cce1db0f921fdc3e899641dd9c59f459ce4b07d /include | |
parent | f8ea0f3a66559a00c41fd7877bdc241973a60f8c (diff) | |
download | busybox-w32-cce38586aee7fe892ca1c837ee08a96bd3454ee9.tar.gz busybox-w32-cce38586aee7fe892ca1c837ee08a96bd3454ee9.tar.bz2 busybox-w32-cce38586aee7fe892ca1c837ee08a96bd3454ee9.zip |
start_stop_daemon: add -chuid support
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 3 | ||||
-rw-r--r-- | include/usage.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index a32e6154c..4293ae269 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -443,7 +443,10 @@ struct bb_uidgid_t { | |||
443 | uid_t uid; | 443 | uid_t uid; |
444 | gid_t gid; | 444 | gid_t gid; |
445 | }; | 445 | }; |
446 | /* always sets uid and gid */ | ||
446 | int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok); | 447 | int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok); |
448 | /* chown-like handling of "user[:[group]" */ | ||
449 | void parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group); | ||
447 | /* what is this? */ | 450 | /* what is this? */ |
448 | /*extern char *bb_getug(char *buffer, char *idname, long id, int bufsize, char prefix);*/ | 451 | /*extern char *bb_getug(char *buffer, char *idname, long id, int bufsize, char prefix);*/ |
449 | char *bb_getpwuid(char *name, long uid, int bufsize); | 452 | char *bb_getpwuid(char *name, long uid, int bufsize); |
diff --git a/include/usage.h b/include/usage.h index 52f972038..04dddd7c3 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -2893,7 +2893,7 @@ | |||
2893 | "\n -N|--nicelevel <N> Add N to process's nice level" \ | 2893 | "\n -N|--nicelevel <N> Add N to process's nice level" \ |
2894 | ) \ | 2894 | ) \ |
2895 | "\n -s|--signal <signal> Signal to send (default TERM)" \ | 2895 | "\n -s|--signal <signal> Signal to send (default TERM)" \ |
2896 | "\n -U|--chuid <username>|<uid> Start process with this name" | 2896 | "\n -c|--chuid <user>[:[<group>]] Change to specified user/group" |
2897 | 2897 | ||
2898 | #define stat_trivial_usage \ | 2898 | #define stat_trivial_usage \ |
2899 | "[OPTION] FILE..." | 2899 | "[OPTION] FILE..." |