diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-27 07:55:03 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-27 07:55:03 +0000 |
commit | cc4d59e9cd0a54118dc0f0dc833539102a42ea4a (patch) | |
tree | 7bf98d838ce7e83450ad9ebf76567ce143430a4e | |
parent | 8846a6bfdd11703c53d6bbb288b5f1fd74468143 (diff) | |
download | coreutils-cc4d59e9cd0a54118dc0f0dc833539102a42ea4a.tar.xz |
(diropen): Don't bother trying to open directory for write access:
POSIX says that must fail.
-rw-r--r-- | lib/fts.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -203,10 +203,7 @@ static int internal_function diropen (char const *dir) { - int fd = open (dir, O_RDONLY | O_DIRECTORY); - if (fd < 0) - fd = open (dir, O_WRONLY | O_DIRECTORY); - return fd; + return open (dir, O_RDONLY | O_DIRECTORY | O_NOCTTY | O_NONBLOCK); } FTS * |