r13384: Adding in some more SuSE patches
authorGerald Carter <jerry@samba.org>
Wed, 8 Feb 2006 04:11:08 +0000 (04:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:09:57 +0000 (11:09 -0500)
* uninitialized-variables.diff
* samba-smbadduser.diff
* samba-implicit_decl.patch
(This used to be commit 064338c6f5644d1ceddf341d4ba5619a3d68ffa7)

source3/modules/getdate.c
source3/modules/getdate.y
source3/pam_smbpass/pam_smb_auth.c
source3/smbadduser.in

index 491c51294e9ca0e68704250b126865671c7229e8..51211f316d5c44f2de7d287355836168255b6a54 100644 (file)
 #endif
 
 #include <ctype.h>
+#include <string.h>
 
 #if HAVE_STDLIB_H
 # include <stdlib.h> /* for `free'; used by Bison 1.27 */
index aab37f4d23554163fcab0c5de345af340d58c9ee..60b1aa577ec592db72a74d90fe91794ceb07007e 100644 (file)
@@ -43,6 +43,7 @@
 #endif
 
 #include <ctype.h>
+#include <string.h>
 
 #if HAVE_STDLIB_H
 # include <stdlib.h> /* for `free'; used by Bison 1.27 */
index cbdb6fa811620e857c8cd73e6e032f87cc3ac5ab..f604d42449f24d64ddb656559639271421bfd891 100644 (file)
@@ -67,7 +67,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags,
     SAM_ACCOUNT *sampass = NULL;
     extern BOOL in_client;
     const char *name;
-    void (*oldsig_handler)(int);
+    void (*oldsig_handler)(int) = NULL;
     BOOL found;
 
     /* Points to memory managed by the PAM library. Do not free. */
index 05da7de08eea4e03aa1f5d53fcda224d041b3e9f..4b9671319a3f76c115f29c9ecc65c0311b04abb4 100644 (file)
@@ -10,15 +10,15 @@ PRIVATEDIR=@privatedir@
 CONFIGDIR=@configdir@
 
 unalias *
-set path = ($path /usr/local/samba/bin)
+set path = ($path /usr/bin)
 
 set smbpasswd = $PRIVATEDIR/smbpasswd
-set user_map  = $CONFIGDIR/users.map
+set user_map  = $CONFIGDIR/smbusers
 
 #
 # Set to site specific passwd command
 #
-set passwd    = "cat /etc/passwd"
+set passwd    = "getent passwd"
 #set passwd    = "niscat passwd.org_dir"
 #set passwd    = "ypcat passwd"