aboutsummaryrefslogtreecommitdiffstats
path: root/mount.cifs.c
diff options
context:
space:
mode:
authorLuk Claes <luk@debian.org>2012-07-19 09:27:01 -0400
committerJeff Layton <jlayton@samba.org>2012-07-19 09:27:01 -0400
commit877701f3cc23df3cb2a293c060bdbf05a87bff6a (patch)
tree89837ed5d95e5779da35314fd78b65f5fa2a1094 /mount.cifs.c
parent4e264031d0da7d3f2a287337e86b623e814f5c56 (diff)
downloadcifs-utils-877701f3cc23df3cb2a293c060bdbf05a87bff6a.tar.gz
cifs-utils-877701f3cc23df3cb2a293c060bdbf05a87bff6a.tar.xz
cifs-utils-877701f3cc23df3cb2a293c060bdbf05a87bff6a.zip
mount.cifs: Use errno instead of having unknown error
When access() fails, use errno for a sensible error message. Signed-off-by: Luk Claes <luk@debian.org>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r--mount.cifs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mount.cifs.c b/mount.cifs.c
index a15ba9e..330e528 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -590,6 +590,7 @@ static int open_cred_file(char *file_name,
i = access(file_name, R_OK);
if (i) {
toggle_dac_capability(0, 0);
+ i = errno;
goto return_i;
}