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
7 pstrcpy(password,lp+1);
9 - memset(strchr_m(opteq+1,'%')+1,'X',strlen(password));
10 + memset(strchr_m(opteq+1,'%')+1,'\0',strlen(password));
12 if ((lp=strchr_m(username,'/'))) {
15 !strcmp(opts, "password")) {
16 pstrcpy(password,opteq+1);
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")) {
25 pstrcpy(password,p+1);
27 - memset(strchr_m(getenv("USER"),'%')+1,'X',strlen(password));
28 + memset(strchr_m(getenv("USER"),'%')+1,'\0',strlen(password));
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
38 static struct cli_state cli;
40 + loopback_ip.s_addr = htonl((127 << 24) + 1);
41 if (!cli_initialise(&cli))
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
49 chmod $INSTALLPERMS $BINDIR/$p2
51 # this is a special case, mount needs this in a specific location
52 - if [ $p2 = smbmount ]; then
53 - if [ ! -d $DESTDIR/sbin ]; then
56 - ln -sf $BINDIR/$p2 $DESTDIR/sbin/mount.smbfs
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
64 +# ln -sf $BINDIR/$p2 $DESTDIR/sbin/mount.smbfs