From 301ca929aada9fdc6d75a7f500b03eabba01fd9f Mon Sep 17 00:00:00 2001 From: Steve French Date: Mon, 29 Aug 2011 18:54:12 +0000 Subject: [PATCH] --- yaml --- r: 263998 b: refs/heads/master c: c9c7fa0064f4afe1d040e72f24c2256dd8ac402d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index ad4436dcbb44..648527ff2fe9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5b980b01212199833ee8023770fa4cbf1b85e9f4 +refs/heads/master: c9c7fa0064f4afe1d040e72f24c2256dd8ac402d diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index 633c246b6775..f4af4cc37500 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/fs/cifs/connect.c @@ -1298,7 +1298,7 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, /* ignore */ } else if (strnicmp(data, "guest", 5) == 0) { /* ignore */ - } else if (strnicmp(data, "rw", 2) == 0) { + } else if (strnicmp(data, "rw", 2) == 0 && strlen(data) == 2) { /* ignore */ } else if (strnicmp(data, "ro", 2) == 0) { /* ignore */ @@ -1401,7 +1401,7 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, vol->server_ino = 1; } else if (strnicmp(data, "noserverino", 9) == 0) { vol->server_ino = 0; - } else if (strnicmp(data, "rwpidforward", 4) == 0) { + } else if (strnicmp(data, "rwpidforward", 12) == 0) { vol->rwpidforward = 1; } else if (strnicmp(data, "cifsacl", 7) == 0) { vol->cifs_acl = 1;