r5236: Ignore users mount parm (since unneeded by cifs kernel code). Suggested by...
[ira/wip.git] / source3 / client / mount.cifs.c
index 1793a9ed7fe1bfa32b7034a07b49d384d3d43830..d648629f9c31fd59b0f117db3a0d33f8954f8c12 100755 (executable)
@@ -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)