Commit 0e62bbac authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Now allows specification of a start directory on the cmdline.

parent d09136f0
......@@ -203,7 +203,11 @@ $SIG{'ALRM'} = "alarmhandler";
# mounted that's not on campus or add relevant ! -fstype nfs or similar.
#
open(FIND,"find / -type f \\( -name \"*.EXE\" -o -name \"*.exe\" -o -name \"*.scr\" -o -name \"*.SCR\" \\) -print|");
$startdir = '/';
$startdir = $ARGV[0] if ($ARGV[0] && (-d $ARGV[0]));
open(FIND,"find $startdir -type f \\( -name \"*.EXE\" -o -name \"*.exe\" -o -name \"*.scr\" -o -name \"*.SCR\" \\) -print|");
while ($exe=<FIND>) {
chop($exe);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment