From patchwork Thu Jun 3 06:39:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: accept all supported values for dir_mode Date: Wed, 02 Jun 2010 20:39:19 -0000 From: Scott Lovenberg X-Patchwork-Id: 54454 Message-Id: <1275547159-30008-1-git-send-email-scott.lovenberg@gmail.com> To: linux-cifs-client@lists.samba.org Cc: jlayton@samba.org The option parsing function now accepts all values for 'dir_mode' that are supported by the kernel side code. Signed-off-by: Scott Lovenberg --- mount.cifs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index 65754c0..21ce532 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -812,7 +812,7 @@ static int parse_opt_token(const char *token) return OPT_FILE_MODE; if (strncmp(token, "dmask", 5) == 0) return OPT_DMASK; - if (strncmp(token, "dir_mode", 8) == 0) + if (strncmp(token, "dir_mode", 4) == 0 || strncmp(token, "dirm", 4) == 0) return OPT_DIR_MODE; if (strncmp(token, "nosuid", 6) == 0) return OPT_NO_SUID;