start_stop_daemon: add -chuid support

This commit is contained in:
Denis Vlasenko
2007-02-26 22:47:42 +00:00
parent f8ea0f3a66
commit cce38586ae
5 changed files with 70 additions and 42 deletions

View File

@ -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);