Five bugs in a single line of JavaScript
blog.jgc.org
blog.jgc.org
Strictly speaking, you can get a list of files in the directory. i.e., opendir() and readdir() will not return "Permission denied". However, you can't access any of the files within the directory.
BTW, sounds like something you'd see in an Adobe installer.
Yes, and this is commonly used for the parent directory of a publically readable directory.
Fore example, you can't read or write anything in my home directory but you can execute through it to read stuff form my public_www directory. If the execute bit form my home is removed, that breaks my webpage.
Really this should be posted on wherever _those_ guys hang out than hacker news, where we're unlikely to write code like that (even under duress)
1. Setting the permission on the wrong thing (directory instead of file)
2. Setting the permissions to 666 instead of 0666.
A design "bug" is only a bug if it was unintentional. The other two "bugs" are pedantry that you'd only expect out of a compiler that spits out tons of cascading "errors" resulting from a single actual error.