about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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") ;