in reply to Can you delete a file by descriptor?
Delete does not follow symbolic links. It deletes the link. So just delete it.
For a symbolic link to be used against you, a directory would have to be removed (or renamed) and replaced with a symbolic link and then your problem could delete a file that has the same basename as the lock file but in the wrong directory. That seems like an unlikely attack with a minor consequence, but you might want to spend a bit of time examining this for your specific situation.
- tye (but my friends call me "Tye")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: Can you delete a file by descriptor?
by shotgunefx (Parson) on Mar 14, 2002 at 19:21 UTC |