Initial import
[samba] / debian / patches / samba.patch
1 Index: samba-3.0.21c/source/client/smbmount.c
2 ===================================================================
3 --- samba-3.0.21c.orig/source/client/smbmount.c 2006-02-25 11:57:10.475584681 +0100
4 +++ samba-3.0.21c/source/client/smbmount.c      2006-02-25 11:58:23.681814024 +0100
5 @@ -767,7 +767,7 @@
6                                         *lp = 0;
7                                         pstrcpy(password,lp+1);
8                                         got_pass = True;
9 -                                       memset(strchr_m(opteq+1,'%')+1,'X',strlen(password));
10 +                                       memset(strchr_m(opteq+1,'%')+1,'\0',strlen(password));
11                                 }
12                                 if ((lp=strchr_m(username,'/'))) {
13                                         *lp = 0;
14 @@ -777,7 +777,7 @@
15                                   !strcmp(opts, "password")) {
16                                 pstrcpy(password,opteq+1);
17                                 got_pass = True;
18 -                               memset(opteq+1,'X',strlen(password));
19 +                               memset(opteq+1,'\0',strlen(password));
20                         } else if(!strcmp(opts, "credentials")) {
21                                 pstrcpy(credentials,opteq+1);
22                         } else if(!strcmp(opts, "netbiosname")) {
23 @@ -893,7 +893,7 @@
24                         *p = 0;
25                         pstrcpy(password,p+1);
26                         got_pass = True;
27 -                       memset(strchr_m(getenv("USER"),'%')+1,'X',strlen(password));
28 +                       memset(strchr_m(getenv("USER"),'%')+1,'\0',strlen(password));
29                 }
30                 strupper_m(username);
31         }
32 Index: samba-3.0.21c/source/web/diagnose.c
33 ===================================================================
34 --- samba-3.0.21c.orig/source/web/diagnose.c    2006-02-25 11:57:10.476584479 +0100
35 +++ samba-3.0.21c/source/web/diagnose.c 2006-02-25 11:58:23.683813621 +0100
36 @@ -62,6 +62,7 @@
37  {
38         static struct cli_state cli;
39  
40 +       loopback_ip.s_addr = htonl((127 << 24) + 1);
41         if (!cli_initialise(&cli))
42                 return False;
43  
44 Index: samba-3.0.21c/source/script/installbin.sh
45 ===================================================================
46 --- samba-3.0.21c.orig/source/script/installbin.sh      2006-02-25 11:57:10.477584277 +0100
47 +++ samba-3.0.21c/source/script/installbin.sh   2006-02-25 11:58:23.684813419 +0100
48 @@ -24,12 +24,14 @@
49   chmod $INSTALLPERMS $BINDIR/$p2
50  
51   # this is a special case, mount needs this in a specific location
52 - if [ $p2 = smbmount ]; then
53 -   if [ ! -d $DESTDIR/sbin ]; then
54 -      mkdir $DESTDIR/sbin
55 -   fi 
56 -   ln -sf $BINDIR/$p2 $DESTDIR/sbin/mount.smbfs
57 - fi
58 +# Commented out for the Debian Samba package. We take care of this
59 +# important symlink in debian/rules. (peloy@debian.org)
60 +# if [ $p2 = smbmount ]; then
61 +#   if [ ! -d $DESTDIR/sbin ]; then
62 +#      mkdir $DESTDIR/sbin
63 +#   fi 
64 +#   ln -sf $BINDIR/$p2 $DESTDIR/sbin/mount.smbfs
65 +# fi
66  done
67  
68