diff options
author | Steve French <stevef@smfhomehp.(none)> | 2008-08-27 17:00:00 -0500 |
---|---|---|
committer | Steve French <stevef@smfhomehp.(none)> | 2008-08-27 17:00:00 -0500 |
commit | 34c073c35192850710582b3f558c9fb761e2c24f (patch) | |
tree | f542dca3b2903b8222ed9c718b6ab041171e9e4f | |
parent | e588f0bc36b1f199afc41389b052d991453af3f8 (diff) | |
download | samba-34c073c35192850710582b3f558c9fb761e2c24f.tar.gz samba-34c073c35192850710582b3f558c9fb761e2c24f.tar.bz2 samba-34c073c35192850710582b3f558c9fb761e2c24f.zip |
mount.cifs: unclear error message with "credentials"
Thanks to Christophe Curis for the suggestion
(This used to be commit 3b5ad9190d2ad6d2ca0a569194bdff9003bda13b)
-rw-r--r-- | source3/client/mount.cifs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index dd878aa07b..9d2b449195 100644 --- 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 { |