in reply to RE: Is this system call hazardous for my computers health??
in thread Is this system call hazardous for my computers health??
Yes the script does run as root. These are the kind of situations Im woried about. Thank you for these pointers. Then should I rewrite the code as follows? :
if (-e $tmp_dir) { if (-l $tmp_dir) { die "Temporary folder $tmp_dir is a symbolic link!\n" }else{ system ("rm","-rf",$tmp_dir); mkdir ($tmp_dir) or die "Unable to make temp folder: $tmpdir: $!\n"; } }else{ mkdir ($tmp_dir) or die "Unable to make temporary folder $tmp_dir: $!\n"; }
Thanks!
zzspectrez
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: RE: Is this system call hazardous for my computers health??
by BastardOperator (Monk) on Nov 16, 2000 at 05:56 UTC |