pam_smbpass on solaris

Lauri Jesmin jesmin at ut.ee
Fri Nov 14 13:09:14 GMT 2003


Hello!

I had problem with pam_smbpass on Solaris and following patch got it
working. 


diff -u -w -r1.25.2.10 snprintf.c
--- lib/snprintf.c      24 Oct 2003 16:08:03 -0000      1.25.2.10
+++ lib/snprintf.c      14 Nov 2003 13:03:26 -0000
@@ -852,9 +852,6 @@

        VA_COPY(ap2, ap);

-       ret = vsnprintf(NULL, 0, format, ap2);
-       if (ret <= 0) return ret;
-
        (*ptr) = (char *)malloc(ret+1);
        if (!*ptr) return -1;

-- 
Lauri Jesmin <jesmin at ut.ee>
Tartu Ülikool




More information about the samba-technical mailing list