X-Git-Url: https://git.p6c8.net/devedit.git/blobdiff_plain/333b3cd2d2a6db46715b5ce46ab1f14cfe1bdb10..02321769f658fbe95c046c17f0c5b4de759d282f:/modules/File/Access.pm diff --git a/modules/File/Access.pm b/modules/File/Access.pm index 31ad87d..bc1e37d 100644 --- a/modules/File/Access.pm +++ b/modules/File/Access.pm @@ -7,7 +7,7 @@ package File::Access; # with only one command # # Author: Patrick Canterino -# Last modified: 2004-07-28 +# Last modified: 2004-08-01 # use strict; @@ -40,7 +40,7 @@ use base qw(Exporter); sub chgrp($@) { my ($group,@files) = @_; - my $gid = getgrnam($group); + my $gid = ($group !~ /^\d+$/) ? getgrnam($group): $group; return unless($gid); return chown(-1,$gid,@files);