diff options
author | Steve French <sfrench@samba.org> | 2004-10-19 22:05:38 +0000 |
---|---|---|
committer | Steve French <sfrench@samba.org> | 2004-10-19 22:05:38 +0000 |
commit | 539c699b41f461c2172cc945a3d3d175b05e9a22 (patch) | |
tree | f04caf5cc3cd2108a6397bf001e263d545096757 /source/client | |
parent | fcb8302b3d73849ea1458899f2b101d2e77f16ed (diff) | |
download | samba-539c699b41f461c2172cc945a3d3d175b05e9a22.tar.gz samba-539c699b41f461c2172cc945a3d3d175b05e9a22.tar.xz samba-539c699b41f461c2172cc945a3d3d175b05e9a22.zip |
r3068: strip guest mount option off before sending to kernel mount routine to avoid logging spurious message
Diffstat (limited to 'source/client')
-rwxr-xr-x | source/client/mount.cifs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c index 6a7d1e65a12..1793a9ed7fe 100755 --- a/source/client/mount.cifs.c +++ b/source/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) { |