s3-param: Fixed code block in max_open_files().
authorAndreas Schneider <asn@samba.org>
Wed, 19 Jan 2011 15:13:42 +0000 (16:13 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 19 Jan 2011 22:10:50 +0000 (23:10 +0100)
When the HAVE_GETRLIMIT and RLIMIT_NOFILE macros are defined the block
isn't closed.

Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Wed Jan 19 23:10:50 CET 2011 on sn-devel-104

source3/param/loadparm.c

index 2f68f00c78bae1c02e61cbf8a16fc701a63a9815..875cab1629ea7685152fda8857ce2728eb21a1c5 100644 (file)
@@ -4893,8 +4893,8 @@ static int max_open_files(void)
 #if defined(RLIM_INFINITY)
                if(rl.rlim_cur == RLIM_INFINITY)
                        rlimit_max = MAX_OPEN_FILES;
-       }
 #endif
+       }
 #endif
 
        if (sysctl_max < MIN_OPEN_FILES_WINDOWS) {