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")In reply to (tye)Re: Can you delete a file by descriptor?
by tye
in thread Can you delete a file by descriptor?
by shotgunefx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |