Changeset 5157 in genesis for tools/FreeBSD6_x


Ignore:
Timestamp:
Feb 12, 2006, 7:49:25 PM (19 years ago)
Author:
rick
Message:

Security: Renamed $home -> $ndir, only update node dir, not actual script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/FreeBSD6_x/g_list.pl

    r4940 r5157  
    66
    77# Config located at other file
    8 my $conf_file="/home/genesis/tools/FreeBSD6_x/genesis.conf";
     8my $conf_file="./genesis.conf";
    99do($conf_file) || die("Cann't open $conf_file");
    1010
     
    5656    select(STDERR); $| = 1;     # make unbuffered
    5757    select(STDOUT); $| = 1;     # make unbuffered
    58     system("$svn update $home");
     58    system("$svn update $ndir");
    5959    printline("</PRE>");
    6060    printline("<H2>Done.<H2><P>");
     
    115115  };
    116116
    117   opendir(DIR, $ndir) || die "can't opendir $home: $!";
     117  opendir(DIR, $ndir) || die "can't opendir $ndir: $!";
    118118  @dirs = grep { /^[^\.]/ && -d "$ndir/$_" } readdir(DIR);
    119119  closedir DIR;
Note: See TracChangeset for help on using the changeset viewer.