diff options
Diffstat (limited to 'src/util-plan9.c')
-rw-r--r-- | src/util-plan9.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util-plan9.c b/src/util-plan9.c index 77d2077..84b68fc 100644 --- a/src/util-plan9.c +++ b/src/util-plan9.c @@ -61,7 +61,7 @@ void API logat(int isverbose, const char *fmt, ...) void -drop_privs_to (const char *user, const char *group) +drop_privs_to (const char *user, const char *group, const char **supp_groups) { #if !_PLAN9_SOURCE @@ -70,6 +70,10 @@ drop_privs_to (const char *user, const char *group) struct passwd *pw; struct group *gr; + /* TODO(garnold) Implement supplementary group support. */ + if (supp_groups) + die ("Supplementary groups not supported\n"); + if (0 != getuid ()) return; /* not running as root to begin with; should (!) be harmless to continue without dropping to 'nobody' (setting time will fail in the end) */ |