From: Steve French Date: Fri, 4 Feb 2005 23:30:27 +0000 (+0000) Subject: r5236: Ignore users mount parm (since unneeded by cifs kernel code). Suggested by... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5293 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=076485169e44a95981a12606c639b973c4e79d4e;p=thirdparty%2Fsamba.git r5236: Ignore users mount parm (since unneeded by cifs kernel code). Suggested by Dirk Jagdmann. --- diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c index 1793a9ed7fe..d648629f9c3 100755 --- a/source/client/mount.cifs.c +++ b/source/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)