summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-11-13 12:58:01 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-11-13 12:58:01 +0000
commite5f3b836032a5330356180c0f50ff1b64ec77eb4 (patch)
tree71708ef29967be3fd1975288de18a14406d2bc17 /src
parentca17f290091c402164b808c3a6eff13211fc43ad (diff)
downloads6-e5f3b836032a5330356180c0f50ff1b64ec77eb4.tar.xz
allow user: syntax for s6-envuidgid -B
Diffstat (limited to 'src')
-rw-r--r--src/daemontools-extras/s6-envuidgid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/daemontools-extras/s6-envuidgid.c b/src/daemontools-extras/s6-envuidgid.c
index 997b7b6..2971e6a 100644
--- a/src/daemontools-extras/s6-envuidgid.c
+++ b/src/daemontools-extras/s6-envuidgid.c
@@ -84,6 +84,7 @@ int main (int argc, char *const *argv, char const *const *envp)
argv[0][pos] = 0 ;
group = argv[0] + pos + 1 ;
if (!pos) user = 0 ;
+ if (!group[0]) group = 0 ;
}
break ;
default : strerr_dief1x(101, "inconsistent option management - please submit a bug-report") ;