Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use an 'rmdir' function that's smart about .DS_Store files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use an 'rmdir' function that's smart about .DS_Store files
Authored by: luomat on Dec 22, '09 10:32:08AM

If you want to make this more secure, change:

TMPFILE=/tmp/rmdir.$USER.$$

to

TMPFILE=$HOME/.Trash/rmdir.$USER.$$

which will put the temp file in your own trash folder.

This will reduce the chance that anyone will exploit it from 0.00000002% to 0.00000001%



[ Reply to This | # ]
Use an 'rmdir' function that's smart about .DS_Store files
Authored by: Anonymous on Dec 29, '09 12:46:21PM

Fix the behavior and it's fixed for all time.

I work in a place where scripts of this quality were probably used as the basis of something far more complex, with resulting "inexplicable" breakage. Nothing to do with exploits.



[ Reply to This | # ]