summaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorLinus Torvalds2011-01-17 20:17:51 +0100
committerLinus Torvalds2011-01-17 20:17:51 +0100
commit1a47f7a84ef386c1f7f55f669598bd9894ceb73a (patch)
tree8105fcee8bdbacb06b00cc27e90b631be2290dbb /fs/cifs/connect.c
parentMerge git://git.infradead.org/mtd-2.6 (diff)
parentcifs: add cruid= mount option (diff)
downloadkernel-qcow2-linux-1a47f7a84ef386c1f7f55f669598bd9894ceb73a.tar.gz
kernel-qcow2-linux-1a47f7a84ef386c1f7f55f669598bd9894ceb73a.tar.xz
kernel-qcow2-linux-1a47f7a84ef386c1f7f55f669598bd9894ceb73a.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: cifs: add cruid= mount option cifs: cFYI the entire error code in map_smb_to_linux_error
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index a65d311d163a..9f59887badd2 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1113,6 +1113,8 @@ cifs_parse_mount_options(char *options, const char *devname,
} else if (!strnicmp(data, "uid", 3) && value && *value) {
vol->linux_uid = simple_strtoul(value, &value, 0);
uid_specified = true;
+ } else if (!strnicmp(data, "cruid", 5) && value && *value) {
+ vol->cred_uid = simple_strtoul(value, &value, 0);
} else if (!strnicmp(data, "forceuid", 8)) {
override_uid = 1;
} else if (!strnicmp(data, "noforceuid", 10)) {