64-bit problem in winbind_nss_linux.c

L. Lucius ib at digicron.com
Sun Feb 1 04:31:35 GMT 2004

The following patch fixes a loop in winbind_nss_linux.c on 64-bit systems.  (Well, it fixes it on
systems where size_t and int aren't the same anyway. :-)) It also "fixes" a couple of debug printfs.
This applies to SAMBA_3_0 taken on Jan. 30.


--- winbind_nss_linux.c.orig	2004-01-16 07:11:01.000000000 -0600
+++ winbind_nss_linux.c	2004-01-31 22:12:35.000000000 -0600
@@ -38,7 +38,7 @@
    are the pointers passed in by the C library to the _nss_ntdom_*
    functions. */
-static char *get_static(char **buffer, int *buflen, int len)
+static char *get_static(char **buffer, size_t *buflen, int len)
 	char *result;
@@ -1080,7 +1080,7 @@
 	struct winbindd_request request;
 #ifdef DEBUG_NSS
-	fprintf(stderr, "[%5d]: uidtosid %s\n", getpid(), name);
+	fprintf(stderr, "[%5d]: uidtosid %d\n", getpid(), uid);
@@ -1119,7 +1119,7 @@
 	struct winbindd_request request;
 #ifdef DEBUG_NSS
-	fprintf(stderr, "[%5d]: gidtosid %s\n", getpid(), name);
+	fprintf(stderr, "[%5d]: gidtosid %d\n", getpid(), gid);

More information about the samba-technical mailing list