[SCM] Samba Shared Repository - branch v3-devel updated -
release-3-2-0pre2-3839-g3b5ad91
sfrench at samba.org
sfrench at samba.org
Wed Aug 27 22:01:33 GMT 2008
The branch, v3-devel has been updated
via 3b5ad9190d2ad6d2ca0a569194bdff9003bda13b (commit)
from f0ea0f3502037db878238942ee0729f6940e0b01 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-devel
- Log -----------------------------------------------------------------
commit 3b5ad9190d2ad6d2ca0a569194bdff9003bda13b
Author: Steve French <stevef at smfhomehp.(none)>
Date: Wed Aug 27 17:00:00 2008 -0500
mount.cifs: unclear error message with "credentials"
Thanks to Christophe Curis for the suggestion
-----------------------------------------------------------------------
Summary of changes:
source/client/mount.cifs.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index dd878aa..9d2b449 100644
--- a/source/client/mount.cifs.c
+++ b/source/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 {
--
Samba Shared Repository
More information about the samba-cvs
mailing list