1 diff -uNr samba-3.0.0beta1.orig/source/client/smbmount.c samba-3.0.0beta1/source/client/smbmount.c
2 --- samba-3.0.0beta1.orig/source/client/smbmount.c 2003-06-07 12:57:32.000000000 -0500
3 +++ samba-3.0.0beta1/source/client/smbmount.c 2003-06-30 20:12:22.000000000 -0500
6 pstrcpy(password,lp+1);
8 - memset(strchr_m(opteq+1,'%')+1,'X',strlen(password));
9 + memset(strchr_m(opteq+1,'%')+1,'\0',strlen(password));
11 if ((lp=strchr_m(username,'/'))) {
14 !strcmp(opts, "password")) {
15 pstrcpy(password,opteq+1);
17 - memset(opteq+1,'X',strlen(password));
18 + memset(opteq+1,'\0',strlen(password));
19 } else if(!strcmp(opts, "credentials")) {
20 pstrcpy(credentials,opteq+1);
21 } else if(!strcmp(opts, "netbiosname")) {
24 pstrcpy(password,p+1);
26 - memset(strchr_m(getenv("USER"),'%')+1,'X',strlen(password));
27 + memset(strchr_m(getenv("USER"),'%')+1,'\0',strlen(password));
31 diff -uNr samba-3.0.0beta1.orig/source/web/diagnose.c samba-3.0.0beta1/source/web/diagnose.c
32 --- samba-3.0.0beta1.orig/source/web/diagnose.c 2003-06-07 12:57:41.000000000 -0500
33 +++ samba-3.0.0beta1/source/web/diagnose.c 2003-06-30 20:12:22.000000000 -0500
36 struct cli_state *cli;
38 + loopback_ip.s_addr = htonl((127 << 24) + 1);
39 if ((cli = cli_initialise()) == NULL)
42 --- samba-3.0.23/source/script/installbin.sh.in.orig 2006-07-15 09:08:36.000000000 -0400
43 +++ samba-3.0.23/source/script/installbin.sh.in 2006-07-15 09:51:45.000000000 -0400
45 chmod $INSTALLPERMS $DESTDIR/$BINDIR/$p2
47 # this is a special case, mount needs this in a specific location
48 - if [ $p2 = smbmount ]; then
49 - if [ ! -d $DESTDIR/@rootsbindir@ ]; then
50 - mkdir $DESTDIR/@rootsbindir@
52 - echo "Creating sym link $DESTDIR/@rootsbindir@/mount.smbfs to $BINDIR/$p2 "
53 - ln -sf $BINDIR/$p2 $DESTDIR/@rootsbindir@/mount.smbfs
55 +# Commented out for the Debian Samba package. We take care of this
56 +# important symlink in debian/rules. (peloy@debian.org)
57 +# if [ $p2 = smbmount ]; then
58 +# if [ ! -d $DESTDIR/sbin ]; then
59 +# mkdir $DESTDIR/sbin
61 +# ln -sf $BINDIR/$p2 $DESTDIR/sbin/mount.smbfs