diff options
author | Gerrit Pape <pape@smarden.org> | 2006-11-02 22:59:14 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2006-11-02 22:59:14 +0000 |
commit | a1bbb6ddcf9119220c509c2e6424cf6a5a20d984 (patch) | |
tree | e1691179493adeaa9e59410895afc47b50f2f704 /src/uidgid.h | |
parent | c09a0fe2d6721235b106745b03e2992f0d35fc24 (diff) | |
download | runit-a1bbb6ddcf9119220c509c2e6424cf6a5a20d984.tar.gz runit-a1bbb6ddcf9119220c509c2e6424cf6a5a20d984.tar.xz runit-a1bbb6ddcf9119220c509c2e6424cf6a5a20d984.zip |
* chpst.c, uidgid.c, uidgid.h: support numerical uid gid through
chpst -[u|U] :uid:gid... * man/chpst.8: adapt; clarify that users and groups are looked up in /etc/passwd and /etc/group only. * sv.c: properly wait for a service to be restarted on 'restart'; support checks through -v for pause, cont, kill.
Diffstat (limited to 'src/uidgid.h')
-rw-r--r-- | src/uidgid.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/uidgid.h b/src/uidgid.h index f8599a1..13cacbc 100644 --- a/src/uidgid.h +++ b/src/uidgid.h @@ -9,6 +9,10 @@ struct uidgid { int gids; }; -extern unsigned int uidgid_get(struct uidgid *, char *, unsigned int); +/* user */ +extern unsigned int uidgid_get(struct uidgid *, char *); + +/* [:]user[:group[:group]...] */ +extern unsigned int uidgids_get(struct uidgid *, char *); #endif |