/[corp_html]/.data/save_perm.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /.data/save_perm.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dpavlin, Thu Mar 21 09:57:40 2002 UTC revision 1.3 by dpavlin, Thu Mar 21 13:49:24 2002 UTC
# Line 23  while (@dirs) { Line 23  while (@dirs) {
23                  if (-l "$curr_dir/$file" && grep(/^\Q$file\E$/,@ignore) == 0) {                  if (-l "$curr_dir/$file" && grep(/^\Q$file\E$/,@ignore) == 0) {
24                          my $dest=readlink("$curr_dir/$file");                          my $dest=readlink("$curr_dir/$file");
25                          $dest="$curr_dir/$dest" if (substr($dest,0,1) ne "/");                          $dest="$curr_dir/$dest" if (substr($dest,0,1) ne "/");
26                          print "ln -sf $dest $curr_dir/$file\n";                          print "ln -snf $dest $curr_dir/$file\n";
27                  } elsif ((-f "$curr_dir/$file" || -d "$curr_dir/$file") && grep(/^\Q$file\E$/,@ignore) == 0 && -r "$curr_dir/$file") {                  } elsif ((-f "$curr_dir/$file" || -d "$curr_dir/$file") && grep(/^\Q$file\E$/,@ignore) == 0 && -r "$curr_dir/$file") {
28                          my (undef,undef,$mode,undef,$uid,$gid) = stat("$curr_dir/$file");                          my (undef,undef,$mode,undef,$uid,$gid) = stat("$curr_dir/$file");
29                          if ( $uid != $UID || $gid != $GID ) {                          if ( $uid != $UID || $gid != $GID ) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26