bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

coreutils-6.0 on BeOS (10)


From: Bruno Haible
Subject: coreutils-6.0 on BeOS (10)
Date: Fri, 1 Sep 2006 14:18:02 +0200
User-agent: KMail/1.9.1

This assertion is always triggered on BeOS. Although dirfd (*dirp) is a
positive integer referring to an open file descriptor, the fcntl call
returns a negative value with errno being set to EBADF. (I verified
that the file descriptor is actually open: this and successive opendir
and dirfd calls yield numbers 3, 4, 5, ...)

2006-08-20  Bruno Haible  <address@hidden>

        * src/remove.c (remove_cwd_entries): Disable assertion on BeOS.

--- coreutils-6.0-beos/src/remove.c     2006-08-20 16:00:08.000000000 +0200
+++ coreutils-6.0-beos/src/remove.c     2006-08-20 18:08:58.000000000 +0200
@@ -1263,7 +1270,9 @@
 
   /* Ensure that *dirp is not NULL and that its file descriptor is valid.  */
   assert (*dirp != NULL);
+#ifndef __BEOS__
   assert (0 <= fcntl (dirfd (*dirp), F_GETFD));
+#endif
 
   return status;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]