commit | 4b141e67eefc396687f22f8c136267c0f8081e05 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Mon Feb 29 11:21:43 2016 -0600 |
committer | Rob Landley <rob@landley.net> | Mon Feb 29 11:21:43 2016 -0600 |
tree | 29811b3e46116ca0ae7650e3a46acb3dcc2f039c | |
parent | 44c7958214e1690e820aaddf808267e0bf78df46 [diff] |
Fix a typo from last time, and Isaac Dunham's todo list: - per POSIX, 'cannot open' must be in the 'type' string if open() fails (both EPERM and ENOENT); we only do that if open() succeeds and fstat(fd) fails. - symlink detection (as per POSIX) won't work: opening them O_RDONLY results in following the link, then we fstat() the fd. - file 'FIFO' causes a hang; open() won't return till there's a writer.