diff options
-rw-r--r-- | changelog | 2 | ||||
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | groupmanage/groupmanage | 2 |
3 files changed, 5 insertions, 1 deletions
@@ -4,6 +4,8 @@ userv-utils (0.2.99.0.2) unstable; urgency=low * new Makefiles in various directories, still all a bit crap * removed some common stuff from */Makefile to settings.make * copyright notices updated + * groupmanage: do not claim that root doesn't exist. + (Thanks to report from Ben Harris.) -- diff --git a/debian/changelog b/debian/changelog index 774706f..b727696 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,8 @@ userv-utils (0.2.99.0.2) unstable; urgency=low * new Makefiles in various directories, still all a bit crap * removed some common stuff from */Makefile to settings.make * copyright notices updated + * groupmanage: do not claim that root doesn't exist. + (Thanks to report from Ben Harris.) -- diff --git a/groupmanage/groupmanage b/groupmanage/groupmanage index 90957fd..ffb45c0 100755 --- a/groupmanage/groupmanage +++ b/groupmanage/groupmanage @@ -227,7 +227,7 @@ while (@ARGV) { } elsif (m/^\w[-0-9A-Za-z]*$/) { y/\n//d; $chgu=$_; - getpwnam($chgu) || &quit("username $chgu does not exist"); + defined(getpwnam($chgu)) || &quit("username $chgu does not exist"); eval "\@l = \@$clist; 1" || &quit("internal error: $@"); $already= grep($_ eq $chgu, @l); if ($action eq 'add') { |