From patchwork Sun May 30 11:58:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: mount.cifs: fix parsing of "cred=" option Date: Sun, 30 May 2010 01:58:53 -0000 From: Jeff Layton X-Patchwork-Id: 53995 Message-Id: <1275220733-5395-1-git-send-email-jlayton@samba.org> To: linux-cifs-client@lists.samba.org When the mount option parsing was cleaned up recently, the detection of the "cred=" option was dropped. Signed-off-by: Jeff Layton --- mount.cifs.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index 326b94e..65754c0 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -800,6 +800,8 @@ static int parse_opt_token(const char *token) return OPT_UNC; if (strncmp(token, "dom", 3) == 0 || strncmp(token, "workg", 5) == 0) return OPT_DOM; + if (strncmp(token, "cred", 4) == 0) + return OPT_CRED; if (strncmp(token, "uid", 3) == 0) return OPT_UID; if (strncmp(token, "gid", 3) == 0)