> I wonder what would happen if I created a file called "/etc/passwd" in > the current directory... probably nothing. But who knows? If you created it in, say, /var/tmp, and the system had a root-run cron job that did 'cd /var/tmp; find . -mtime +7 -print | xargs rm -f', things would get interesting. A quick scan through ufs_readdir() (in FreeBSD-current) indicates it will return the file name, slashes and all. Thus, anything calling unlink() inside of a readdir() loop would be in for one hell of a surprise. -- The two most common elements in the universe are Hydrogen and stupidity. -- Harlan Ellison
This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 14:48:41 PDT