[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fts.c compilation error
From: |
Paul Eggert |
Subject: |
Re: fts.c compilation error |
Date: |
Thu, 26 Jan 2006 14:14:21 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Jim Meyering <address@hidden> writes:
> I'll deal with it in a few days, if you don't beat me to it.
I just now installed it, into both gnulib and coretuils-b5_9x.
2006-01-26 Paul Eggert <address@hidden>
* fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
attempt to open for write; this always fails, at least on POSIX
hosts. This reinstates the 2006-01-09 change, which was
inadvertently removed.
--- fts.c 25 Jan 2006 16:45:04 -0000 1.10
+++ fts.c 26 Jan 2006 22:12:26 -0000 1.11
@@ -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 *