summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2005-02-04 23:30:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:34 -0500
commitf221832d9a4e15383a0270c7e1fbc7736b25f4ee (patch)
tree15dae958c377766cd7eda32ef32236073c6b6ed2 /source3
parent2c5e65dd5fac6677958386e43658528157d4227c (diff)
downloadsamba-f221832d9a4e15383a0270c7e1fbc7736b25f4ee.tar.gz
samba-f221832d9a4e15383a0270c7e1fbc7736b25f4ee.tar.bz2
samba-f221832d9a4e15383a0270c7e1fbc7736b25f4ee.zip
r5236: Ignore users mount parm (since unneeded by cifs kernel code). Suggested by Dirk Jagdmann.
(This used to be commit 076485169e44a95981a12606c639b973c4e79d4e)
Diffstat (limited to 'source3')
-rwxr-xr-xsource3/client/mount.cifs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index 1793a9ed7f..d648629f9c 100755
--- a/source3/client/mount.cifs.c
+++ b/source3/client/mount.cifs.c
@@ -290,7 +290,11 @@ static int parse_options(char * options, int * filesys_flags)
value++;
}
- if (strncmp(data, "user", 4) == 0) {
+ if (strncmp(data, "users",5) == 0) {
+ if(!value || !*value) {
+ strncpy(data,",,,,,",5);
+ }
+ } else if (strncmp(data, "user", 4) == 0) {
if (!value || !*value) {
if(data[4] == '\0') {
if(verboseflag)