summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-26 22:47:42 +0000
committerDenis Vlasenko2007-02-26 22:47:42 +0000
commitcce38586aee7fe892ca1c837ee08a96bd3454ee9 (patch)
tree2cce1db0f921fdc3e899641dd9c59f459ce4b07d /include
parentf8ea0f3a66559a00c41fd7877bdc241973a60f8c (diff)
downloadbusybox-cce38586aee7fe892ca1c837ee08a96bd3454ee9.zip
busybox-cce38586aee7fe892ca1c837ee08a96bd3454ee9.tar.gz
start_stop_daemon: add -chuid support
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
-rw-r--r--include/usage.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index a32e615..4293ae2 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -443,7 +443,10 @@ struct bb_uidgid_t {
uid_t uid;
gid_t gid;
};
+/* always sets uid and gid */
int get_uidgid(struct bb_uidgid_t*, const char*, int numeric_ok);
+/* chown-like handling of "user[:[group]" */
+void parse_chown_usergroup_or_die(struct bb_uidgid_t *u, char *user_group);
/* what is this? */
/*extern char *bb_getug(char *buffer, char *idname, long id, int bufsize, char prefix);*/
char *bb_getpwuid(char *name, long uid, int bufsize);
diff --git a/include/usage.h b/include/usage.h
index 52f9720..04dddd7 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2893,7 +2893,7 @@
"\n -N|--nicelevel <N> Add N to process's nice level" \
) \
"\n -s|--signal <signal> Signal to send (default TERM)" \
- "\n -U|--chuid <username>|<uid> Start process with this name"
+ "\n -c|--chuid <user>[:[<group>]] Change to specified user/group"
#define stat_trivial_usage \
"[OPTION] FILE..."