Use errno instead of having unknown error
Subsystems (2)
PATCH 1/1 Use errno instead of having unknown error
When access() fails, use errno for a sensible error message.
Signed-off-by Luk Claes <[email protected]>
--- mount.cifs.c | 1 + 1 file changed, 1 insertion(+)
mount.cifs.c +1 -0
@@ -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; }
Signature · 1 line
1.7.10.4
A message that is not in the archive (sent off-list or not yet received): 1342690708-15087-1-git-send-email-luk-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org
Quoted 12 lines · On Thu, 19 Jul 2012 11:38:28 +0200 Luk Claes…
When
access()fails, use errno for a sensible error message.Signed-off-by Luk Claes <[email protected]>--- mount.cifs.c | 1 + 1 file changed, 1 insertion(+)mount.cifs.c +0
-0
mount.cifs.c static int open_cred_file(char *file_name, · line 596
Quoted 7 lines
mount.cifs.c +1
-0@@ -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; }
Looks correct.
Thanks!
Signature · 1 line
Jeff Layton <[email protected]>
Quoted 12 lines · On Thu, 19 Jul 2012 11:38:28 +0200 Luk Claes…
When
access()fails, use errno for a sensible error message.Signed-off-by Luk Claes <[email protected]>--- mount.cifs.c | 1 + 1 file changed, 1 insertion(+)mount.cifs.c +0
-0
mount.cifs.c static int open_cred_file(char *file_name, · line 596
Quoted 7 lines
mount.cifs.c +1
-0@@ -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; }
Merged...
Signature · 1 line
Jeff Layton <[email protected]>