Calling open() on a directory with flags=0 doesn't work and is apparently