OSDN Git Service

Fix a typo from last time, and Isaac Dunham's todo list:
authorRob Landley <rob@landley.net>
Mon, 29 Feb 2016 17:21:43 +0000 (11:21 -0600)
committerRob Landley <rob@landley.net>
Mon, 29 Feb 2016 17:21:43 +0000 (11:21 -0600)
commit4b141e67eefc396687f22f8c136267c0f8081e05
tree29811b3e46116ca0ae7650e3a46acb3dcc2f039c
parent44c7958214e1690e820aaddf808267e0bf78df46
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.
toys/pending/file.c