summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2004-10-19 22:05:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:00 -0500
commit7d4eaf8a9b9de38c4bbd144e18eacde456a68250 (patch)
tree64ac5e43d9288382208d5cc84a72b639772ada1f
parent293136c04b7eb5293ef18273e13fca00c85bb5f0 (diff)
downloadsamba-7d4eaf8a9b9de38c4bbd144e18eacde456a68250.tar.gz
samba-7d4eaf8a9b9de38c4bbd144e18eacde456a68250.tar.bz2
samba-7d4eaf8a9b9de38c4bbd144e18eacde456a68250.zip
r3068: strip guest mount option off before sending to kernel mount routine to avoid logging spurious message
(This used to be commit a23c607ef0594ab098d1e5d85fb7635e530e3818)
-rwxr-xr-xsource3/client/mount.cifs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index 6a7d1e65a1..1793a9ed7f 100755
--- a/source3/client/mount.cifs.c
+++ b/source3/client/mount.cifs.c
@@ -467,6 +467,12 @@ static int parse_options(char * options, int * filesys_flags)
*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) {