diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/connect.c | 2 | ||||
-rw-r--r-- | fs/cifs/netmisc.c | 4 |
2 files changed, 4 insertions, 2 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, | |||
1113 | } else if (!strnicmp(data, "uid", 3) && value && *value) { | 1113 | } else if (!strnicmp(data, "uid", 3) && value && *value) { |
1114 | vol->linux_uid = simple_strtoul(value, &value, 0); | 1114 | vol->linux_uid = simple_strtoul(value, &value, 0); |
1115 | uid_specified = true; | 1115 | uid_specified = true; |
1116 | } else if (!strnicmp(data, "cruid", 5) && value && *value) { | ||
1117 | vol->cred_uid = simple_strtoul(value, &value, 0); | ||
1116 | } else if (!strnicmp(data, "forceuid", 8)) { | 1118 | } else if (!strnicmp(data, "forceuid", 8)) { |
1117 | override_uid = 1; | 1119 | override_uid = 1; |
1118 | } else if (!strnicmp(data, "noforceuid", 10)) { | 1120 | } else if (!strnicmp(data, "noforceuid", 10)) { |
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c index 9aad47a2d62f..6783ce6cdc89 100644 --- a/fs/cifs/netmisc.c +++ b/fs/cifs/netmisc.c | |||
@@ -899,8 +899,8 @@ map_smb_to_linux_error(struct smb_hdr *smb, int logErr) | |||
899 | } | 899 | } |
900 | /* else ERRHRD class errors or junk - return EIO */ | 900 | /* else ERRHRD class errors or junk - return EIO */ |
901 | 901 | ||
902 | cFYI(1, "Mapping smb error code %d to POSIX err %d", | 902 | cFYI(1, "Mapping smb error code 0x%x to POSIX err %d", |
903 | smberrcode, rc); | 903 | le32_to_cpu(smb->Status.CifsError), rc); |
904 | 904 | ||
905 | /* generic corrective action e.g. reconnect SMB session on | 905 | /* generic corrective action e.g. reconnect SMB session on |
906 | * ERRbaduid could be added */ | 906 | * ERRbaduid could be added */ |