Remove dependency on detection of HAVE_DIRFD for use of fdopendir().
authorJeremy Allison <jra@samba.org>
Wed, 10 Apr 2013 23:30:10 +0000 (16:30 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 12 Apr 2013 14:21:09 +0000 (16:21 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Apr 12 16:21:10 CEST 2013 on sn-devel-104

source3/lib/system.c

index d69f1c66f12dd5da2dc14e2c43f9c4dc8375ecf5..8dbf7dc33bc2ab954c494a559fd3d3876e18621b 100644 (file)
@@ -634,13 +634,11 @@ void kernel_flock(int fd, uint32 share_mode, uint32 access_mask)
 
 /*******************************************************************
  An fdopendir wrapper.
- Ugly hack - we need dirfd for this to work correctly in the
- calling code.. JRA.
 ********************************************************************/
 
 DIR *sys_fdopendir(int fd)
 {
-#if defined(HAVE_FDOPENDIR) && defined(HAVE_DIRFD)
+#if defined(HAVE_FDOPENDIR)
        return fdopendir(fd);
 #else
        errno = ENOSYS;