File pam_unix-arbitrary-upper-limit-for-MAX_FD_NO.patch of Package pam.39879

Index: Linux-PAM-1.1.8/modules/pam_unix/support.h
===================================================================
--- Linux-PAM-1.1.8.orig/modules/pam_unix/support.h
+++ Linux-PAM-1.1.8/modules/pam_unix/support.h
@@ -143,7 +143,11 @@ static const UNIX_Ctrls unix_args[UNIX_C
 
 #define UNIX_DEFAULTS  (unix_args[UNIX__NONULL].flag)
 
-#define MAX_FD_NO 2000000
+/*
+ * An arbitrary upper limit for the maximum file descriptor number
+ * returned by RLIMIT_NOFILE.
+ */
+#define MAX_FD_NO 65535
 
 /* use this to free strings. ESPECIALLY password strings */
 
openSUSE Build Service is sponsored by