svn commit: samba r2539 - in trunk/source/nsswitch: .
jra at samba.org
jra at samba.org
Wed Sep 22 23:27:08 GMT 2004
Author: jra
Date: 2004-09-22 23:27:07 +0000 (Wed, 22 Sep 2004)
New Revision: 2539
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source/nsswitch&rev=2539&nolog=1
Log:
Fix it the way Henrik Nordstrom (the patch author) wants :-).
Jeremy.
Modified:
trunk/source/nsswitch/winbind_nss_linux.c
Changeset:
Modified: trunk/source/nsswitch/winbind_nss_linux.c
===================================================================
--- trunk/source/nsswitch/winbind_nss_linux.c 2004-09-22 22:20:40 UTC (rev 2538)
+++ trunk/source/nsswitch/winbind_nss_linux.c 2004-09-22 23:27:07 UTC (rev 2539)
@@ -23,10 +23,6 @@
#include "winbind_client.h"
-#ifndef MIN
-#define MIN(a,b) ((a)<(b)?(a):(b))
-#endif
-
/* Maximum number of users to pass back over the unix domain socket
per call. This is not a static limit on the total number of users
or groups returned in total. */
@@ -852,7 +848,9 @@
if (*size == limit) {
goto done;
}
- newsize = MIN(newsize, limit);
+ if (newsize > limit) {
+ newsize = limit;
+ }
}
newgroups = realloc((*groups), newsize * sizeof(**groups));
More information about the samba-cvs
mailing list