From: pcanterino <> Date: Mon, 2 Aug 2004 09:55:53 +0000 (+0000) Subject: Some small changes X-Git-Tag: version_2_0~3 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/4b6ea0ada25839464b9bd7d2eec2e97567ab1626?ds=inline Some small changes --- diff --git a/modules/Command.pm b/modules/Command.pm index 8e47163..a25f8f0 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -6,7 +6,7 @@ package Command; # Execute Dev-Editor's commands # # Author: Patrick Canterino -# Last modified: 2004-07-28 +# Last modified: 2004-08-02 # use strict; @@ -772,7 +772,7 @@ sub exec_chprop($$) } else { - my @stat = lstat($physical); + my @stat = stat($physical); my $mode = $stat[2]; my $mode_oct = substr(sprintf("%04o",$mode),-4); diff --git a/modules/File/Access.pm b/modules/File/Access.pm index bc1e37d..5bd797c 100644 --- a/modules/File/Access.pm +++ b/modules/File/Access.pm @@ -40,7 +40,7 @@ use base qw(Exporter); sub chgrp($@) { my ($group,@files) = @_; - my $gid = ($group !~ /^\d+$/) ? getgrnam($group): $group; + my $gid = ($group !~ /^\d+$/) ? getgrnam($group) : $group; return unless($gid); return chown(-1,$gid,@files); diff --git a/modules/Tool.pm b/modules/Tool.pm index d39c477..18d437c 100644 --- a/modules/Tool.pm +++ b/modules/Tool.pm @@ -204,11 +204,10 @@ sub file_name($) # mode_string() # -# Convert a binary file mode string into a human -# readable string (rwxr-x-r-x) -# (also supports SetUID, SetGID and Sticky Bits) +# Convert a file mode number into a human readable string (rwxr-x-r-x) +# (also supports SetUID, SetGID and Sticky Bit) # -# Params: Binary file mode string +# Params: File mode number # # Return: Humand readable mode string