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)
committerKarolin Seeger <kseeger@samba.org>
Wed, 5 Jun 2013 10:02:42 +0000 (12:02 +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
(cherry picked from commit 7a4dd845958f1411daa8031ca242987001ab2f26)

source3/lib/system.c

index 7c0bb3fe5ae9e5ed749d5327276dcadca5db5f37..1ca2f5e82ce51d4a70c80895e87d357b565781ca 100644 (file)
@@ -882,16 +882,14 @@ SMB_STRUCT_DIR *sys_opendir(const char *name)
 }
 
 /*******************************************************************
- An fdopendir wrapper that will deal with 64 bit filesizes.
- Ugly hack - we need dirfd for this to work correctly in the
- calling code.. JRA.
+ An fdopendir wrapper.
 ********************************************************************/
 
 SMB_STRUCT_DIR *sys_fdopendir(int fd)
 {
-#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_FDOPENDIR64) && defined(HAVE_DIRFD)
+#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_FDOPENDIR64)
        return fdopendir64(fd);
-#elif defined(HAVE_FDOPENDIR) && defined(HAVE_DIRFD)
+#elif defined(HAVE_FDOPENDIR)
        return fdopendir(fd);
 #else
        errno = ENOSYS;