git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e588f0b
)
mount.cifs: unclear error message with "credentials"
author
Steve French
<stevef@smfhomehp.(none)>
Wed, 27 Aug 2008 22:00:00 +0000
(17:00 -0500)
committer
Steve French
<stevef@smfhomehp.(none)>
Wed, 27 Aug 2008 22:00:00 +0000
(17:00 -0500)
Thanks to Christophe Curis for the suggestion
(This used to be commit
3b5ad9190d2ad6d2ca0a569194bdff9003bda13b
)
source3/client/mount.cifs.c
patch
|
blob
|
history
diff --git
a/source3/client/mount.cifs.c
b/source3/client/mount.cifs.c
index dd878aa07b41448fef6eb032183363976d5c9388..9d2b44919571f0e7dd7bb697e41820bd47c752ef 100644
(file)
--- a/
source3/client/mount.cifs.c
+++ b/
source3/client/mount.cifs.c
@@
-196,7
+196,7
@@
static int open_cred_file(char * file_name)
line_buf = (char *)malloc(4096);
if(line_buf == NULL) {
fclose(fs);
- return
-
ENOMEM;
+ return ENOMEM;
}
while(fgets(line_buf,4096,fs)) {
@@
-537,7
+537,8
@@
static int parse_options(char ** optionsp, int * filesys_flags)
if (value && *value) {
rc = open_cred_file(value);
if(rc) {
- printf("error %d opening credential file %s\n",rc, value);
+ printf("error %d (%s) opening credential file %s\n",
+ rc, strerror(rc), value);
return 1;
}
} else {