svn commit: samba r3068 - in branches/SAMBA_3_0/source/client: .
sfrench at samba.org
sfrench at samba.org
Tue Oct 19 22:05:38 GMT 2004
Author: sfrench
Date: 2004-10-19 22:05:38 +0000 (Tue, 19 Oct 2004)
New Revision: 3068
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source/client&rev=3068&nolog=1
Log:
strip guest mount option off before sending to kernel mount routine to avoid logging spurious message
Modified:
branches/SAMBA_3_0/source/client/mount.cifs.c
Changeset:
Modified: branches/SAMBA_3_0/source/client/mount.cifs.c
===================================================================
--- branches/SAMBA_3_0/source/client/mount.cifs.c 2004-10-19 17:05:01 UTC (rev 3067)
+++ branches/SAMBA_3_0/source/client/mount.cifs.c 2004-10-19 22:05:38 UTC (rev 3068)
@@ -467,6 +467,12 @@
*filesys_flags &= ~MS_NOEXEC;
} else if (strncmp(data, "guest", 5) == 0) {
got_password=1;
+ /* remove the parm since it would otherwise be logged by kern */
+ data[0] = ',';
+ data[1] = ',';
+ data[2] = ',';
+ data[3] = ',';
+ data[4] = ',';
} else if (strncmp(data, "ro", 2) == 0) {
*filesys_flags |= MS_RDONLY;
} else if (strncmp(data, "rw", 2) == 0) {
More information about the samba-cvs
mailing list