summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-05-10 21:16:36 +0000
committerGerald Carter <jerry@samba.org>2007-05-10 21:16:36 +0000
commitdb8e37da9e971e6c5f37c67f6c28491e49058082 (patch)
tree4863a97a3493e95a89d01821f5989ce929d09be7
parent2d6c8c74f453c2d17914668727ee0a17ffb9d8a1 (diff)
downloadsamba-db8e37da9e971e6c5f37c67f6c28491e49058082.tar.gz
r22781: grab Steve's patch for mount.cifs and sec=none
-rwxr-xr-xsource/client/mount.cifs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index 49150e1ffba..009d2a6e73f 100755
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -419,6 +419,11 @@ static int parse_options(char ** optionsp, int * filesys_flags)
printf("password too long\n");
return 1;
}
+ } else if (strncmp(data, "sec", 3) == 0) {
+ if (value) {
+ if (!strcmp(value, "none"))
+ got_password = 1;
+ }
} else if (strncmp(data, "ip", 2) == 0) {
if (!value || !*value) {
printf("target ip address argument missing");
@@ -567,8 +572,6 @@ static int parse_options(char ** optionsp, 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 */
- goto nocopy;
} else if (strncmp(data, "ro", 2) == 0) {
*filesys_flags |= MS_RDONLY;
} else if (strncmp(data, "rw", 2) == 0) {