From: pcanterino <> Date: Tue, 5 Oct 2004 18:05:26 +0000 (+0000) Subject: Changed some comments X-Git-Tag: version_2_1~2 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/7c201ab8e15b5000a1bd3f445e6c769aca4129b1?ds=sidebyside Changed some comments --- diff --git a/devedit.pl b/devedit.pl index cf4ea19..9733c9d 100644 --- a/devedit.pl +++ b/devedit.pl @@ -80,7 +80,7 @@ if($newfile ne '' && $newfile !~ /^\s+$/) $new_virtual .= $file; } -# This check has to be performed first, or abs_path() will be confused +# This check has to be performed first or abs_path() will be confused if(-e clean_path($config->{'fileroot'}."/".$file)) { diff --git a/modules/File/Access.pm b/modules/File/Access.pm index 3bfd50d..c649a2c 100644 --- a/modules/File/Access.pm +++ b/modules/File/Access.pm @@ -31,7 +31,7 @@ use base qw(Exporter); # # Change the group of files or directories # -# Params: 1. Group name +# Params: 1. Group name or group ID # 2. List of files # # Return: Number of files group successfully changed @@ -94,7 +94,11 @@ sub dir_read($) # file_create() # -# Create a file +# Create a file, but only if it doesn't already exist +# +# (I wanted to use O_EXCL for this, but `perldoc -f sysopen` +# doesn't say that it is available on every system - so I +# created this workaround using O_RDONLY and O_CREAT) # # Params: File to create # diff --git a/modules/Tool.pm b/modules/Tool.pm index 18d437c..6fbf8e0 100644 --- a/modules/Tool.pm +++ b/modules/Tool.pm @@ -209,7 +209,7 @@ sub file_name($) # # Params: File mode number # -# Return: Humand readable mode string +# Return: Human readable mode string sub mode_string($) {