in reply to Creating a file with Open
You should also do as perlstyle says and include $user_name.
And personally I would begin sweating at trusting user input for filenames. Have you verified that the name looks like what you think it should? See perlsec for more on that issue.
And btw that code for flocking will not give you the protection you want, open it "+<$user_name" or else it gets wiped out before you try to lock it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Guildenstern) RE: RE (tilly) 1: Creating a file with Open
by Guildenstern (Deacon) on Oct 03, 2000 at 17:58 UTC | |
by tilly (Archbishop) on Oct 03, 2000 at 18:12 UTC | |
by merlyn (Sage) on Oct 03, 2000 at 18:12 UTC | |
by ncw (Friar) on Oct 03, 2000 at 23:46 UTC |