From 7c201ab8e15b5000a1bd3f445e6c769aca4129b1 Mon Sep 17 00:00:00 2001 From: pcanterino <> Date: Tue, 5 Oct 2004 18:05:26 +0000 Subject: [PATCH] Changed some comments --- devedit.pl | 2 +- modules/File/Access.pm | 8 ++++++-- modules/Tool.pm | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) 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($) { -- 2.34.1