git.samba.org
/
garming
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
293136c
)
r3068: strip guest mount option off before sending to kernel mount routine to avoid...
author
Steve French
<sfrench@samba.org>
Tue, 19 Oct 2004 22:05:38 +0000
(22:05 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:53:00 +0000
(10:53 -0500)
(This used to be commit
a23c607ef0594ab098d1e5d85fb7635e530e3818
)
source3/client/mount.cifs.c
patch
|
blob
|
history
diff --git
a/source3/client/mount.cifs.c
b/source3/client/mount.cifs.c
index 6a7d1e65a12a9db68aae1ca69109df608427769f..1793a9ed7fe1bfa32b7034a07b49d384d3d43830 100755
(executable)
--- 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) {