Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3F3802C8.7B64C4F9@phekda.freeserve.co.uk> Date: Mon, 11 Aug 2003 21:55:36 +0100 From: Richard Dawe X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com CC: Andrew Cottrell Subject: Re: inode problem in `rm' References: <000001c35f0a$9d510470$0101a8c0 AT acp42g> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Hello. Eli Zaretskii wrote: [snip] > Sorry, I don't see how fstat could be relevant here: we are talking > about directories, and fstat cannot be possibly called on directories, > since we cannot `open' a directory to get a file descriptor. Actually, that's not true. From the "What's Changed" document: "The function `fchdir' was added. This required modifications to the POSIX functions `open', `read', `write', `lseek', `ftruncate', `fstat', `select', `fsync' and `fdopen' and the ANSI functions `fopen', `freopen', `fclose', `ftell', `fseek' and `rewind', to make them aware of file descriptors for directories." I wonder if the 'rm' code actually calls fstat on an a directory file descriptor, though. It doesn't sound like it. Bye, Rich =] -- Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]