summaryrefslogtreecommitdiff
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorScott Lovenberg <scott.lovenberg@gmail.com>2010-06-06 07:33:40 -0400
committerJeff Layton <jlayton@samba.org>2010-06-06 07:33:40 -0400
commitd3e2408fc8374bbf2f3349db10e296e2cd8379c7 (patch)
tree0dc11a8254dd41e685016d41ab72cf33c38823ae /mount.cifs.c
parentb165eb46e70e0d0e8e1d00906e21e42b3c7bb3fa (diff)
downloadcifs-utils-d3e2408fc8374bbf2f3349db10e296e2cd8379c7.tar.gz
cifs-utils-d3e2408fc8374bbf2f3349db10e296e2cd8379c7.tar.bz2
cifs-utils-d3e2408fc8374bbf2f3349db10e296e2cd8379c7.zip
mount.cifs: accept all supported values for dir_mode
The option parsing function now accepts all values for 'dir_mode' that are supported by the kernel side code. Signed-off-by: Scott Lovenberg <scott.lovenberg@gmail.com>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r--mount.cifs.c2
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;