From patchwork Sun May 30 11:58:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 103119 Received: from lists.samba.org (fn.samba.org [216.83.154.106]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4UBx1J1010068 for ; Sun, 30 May 2010 11:59:37 GMT Received: from fn.samba.org (localhost [127.0.0.1]) by lists.samba.org (Postfix) with ESMTP id EB6EBAD264; Sun, 30 May 2010 05:59:00 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on fn.samba.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.8 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.2.5 X-Original-To: linux-cifs-client@lists.samba.org Delivered-To: linux-cifs-client@lists.samba.org Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.121]) by lists.samba.org (Postfix) with ESMTP id DDAF4AD244 for ; Sun, 30 May 2010 05:58:54 -0600 (MDT) X-Authority-Analysis: v=1.1 cv=XJBoL1f5z3etUdR3EmbNHXFie2oYvtf87KacKPijUJE= c=1 sm=0 a=dPjfXPQp15gA:10 a=GQCbJdZ--msA:10 a=ld/erqUjW76FpBUqCqkKeA==:17 a=hGzw-44bAAAA:8 a=0PXbY7h1-kkFTushR-QA:9 a=mWXpA0nlOZVoLXXOign7m4i_S0wA:4 a=dowx1zmaLagA:10 a=ld/erqUjW76FpBUqCqkKeA==:117 X-Cloudmark-Score: 0 X-Originating-IP: 71.70.153.3 Received: from [71.70.153.3] ([71.70.153.3:48361] helo=mail.poochiereds.net) by cdptpa-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id AC/D0-02347-DF2520C4; Sun, 30 May 2010 11:58:53 +0000 Received: by mail.poochiereds.net (Postfix, from userid 4447) id 58CD2580C1; Sun, 30 May 2010 07:58:53 -0400 (EDT) From: Jeff Layton To: linux-cifs-client@lists.samba.org Date: Sun, 30 May 2010 07:58:53 -0400 Message-Id: <1275220733-5395-1-git-send-email-jlayton@samba.org> X-Mailer: git-send-email 1.6.6.1 Subject: [linux-cifs-client] [PATCH] mount.cifs: fix parsing of "cred=" option X-BeenThere: linux-cifs-client@lists.samba.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: The Linux CIFS VFS client List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-cifs-client-bounces@lists.samba.org Errors-To: linux-cifs-client-bounces@lists.samba.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 30 May 2010 11:59:37 +0000 (UTC) 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)