Ruby Dir.glob bug
To further elaborate on Yehuda’s twit:
[~/tmp][rando@apollo] % mkdir first first/second [~/tmp][rando@apollo] % touch first/second/test.txt [~/tmp][rando@apollo] % chmod -x first [~/tmp][rando@apollo] % ls first/second/*.txt ls: cannot access first/second/*.txt: Permission denied [~/tmp][rando@apollo] % irb irb(main):001:0> Dir.glob(’first/second/*.txt’) => []
If you try to glob some things in a directory that has some ancestor missing the eXecute permission, ruby doesn’t give any indication of an error.
This took [...]
Also tagged