X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=groupmanage%2Fgroupmanage;h=19416062e27e5d96011fd228978d8ab0ff060f79;hb=f0aa028edd42fec09cf17b7831bc00adc2ba6d31;hp=48e7077ab34a9a0a87737b987bbb53743bddadfc;hpb=d38b93ab413ea961a8d6a3a762d6e28d3bac8afc;p=userv-utils.git diff --git a/groupmanage/groupmanage b/groupmanage/groupmanage index 48e7077..1941606 100755 --- a/groupmanage/groupmanage +++ b/groupmanage/groupmanage @@ -1,22 +1,18 @@ #!/usr/bin/perl # -# Reads /etc/grouplist, in form -# group:description:owner:manager1,manager2,manager3:home-directory -# (as many or few managers as you like) -# Modifies /etc/grouplist by adding or removing managers &c, -# and /etc/group by adding or removing members. - -# Copyright (C)1995-8 Ian Jackson - +# Copyright (C)1995-9 Ian Jackson +# # This is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. - +# # It is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. +# +# $Id$ sub usage { &unlock; @@ -36,6 +32,8 @@ groupmanage: $_[0] --manager-remove ... --title --owner [root only] +groupmanage is Copyright. It is free software, released under the GNU +GPL v2 or later. There is NO WARRANTY. See the GPL for details. END exit(1); } @@ -196,7 +194,7 @@ while (@ARGV) { } elsif (m/^\w[-0-9A-Za-z]*$/) { y/\n//d; $chgu=$_; - (@pw= getpwnam($chgu)) || &quit("username $chgu does not exist"); + getpwnam($chgu) || &quit("username $chgu does not exist"); eval "\@l = \@$clist; 1" || &quit("internal error: $@"); $already= grep($_ eq $chgu, @l); if ($action eq 'add') {