]> git.p6c8.net - devedit.git/blobdiff - modules/File/Access.pm
We are now using the `chgrp` system command to change the group of a file
[devedit.git] / modules / File / Access.pm
index c649a2caa1d3692f835e0edb192b2bddb76f3043..6ab193ed3ae78d01d777b4a27df7c35fe66d1b12 100644 (file)
@@ -7,7 +7,7 @@ package File::Access;
 # with only one command
 #
 # Author:        Patrick Canterino <patshaping@gmx.net>
 # with only one command
 #
 # Author:        Patrick Canterino <patshaping@gmx.net>
-# Last modified: 2004-08-05
+# Last modified: 2004-10-26
 #
 
 use strict;
 #
 
 use strict;
@@ -20,32 +20,12 @@ use Fcntl;
 
 use base qw(Exporter);
 
 
 use base qw(Exporter);
 
-@EXPORT = qw(chgrp
-             dir_read
+@EXPORT = qw(dir_read
              file_create
              file_read
              file_save
              file_unlock);
 
              file_create
              file_read
              file_save
              file_unlock);
 
-# chgrp()
-#
-# Change the group of files or directories
-#
-# Params: 1. Group name or group ID
-#         2. List of files
-#
-# Return: Number of files group successfully changed
-#         (or false)
-
-sub chgrp($@)
-{
- my ($group,@files) = @_;
- my $gid = ($group !~ /^\d+$/) ? getgrnam($group) : $group;
-
- return unless($gid);
- return chown(-1,$gid,@files);
-}
-
 # dir_read()
 #
 # Collect the files and directories in a directory
 # dir_read()
 #
 # Collect the files and directories in a directory

patrick-canterino.de