summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/cmdline/cmdline.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/cmdline/cmdline.c b/lib/cmdline/cmdline.c
index 11630287a83..a0a55f4dcfb 100644
--- a/lib/cmdline/cmdline.c
+++ b/lib/cmdline/cmdline.c
@@ -757,8 +757,15 @@ static void popt_common_credentials_callback(poptContext popt_ctx,
/*
* This calls cli_credentials_set_conf() to get the defaults
* form smb.conf and set the winbind separator.
+ *
+ * Just warn that we can't read the smb.conf. The might not be
+ * one available or we want to ignore it.
*/
- cli_credentials_guess(creds, lp_ctx);
+ ok = cli_credentials_guess(creds, lp_ctx);
+ if (!ok) {
+ fprintf(stderr,
+ "Unable to read defaults from smb.conf\n");
+ }
(void)cli_credentials_get_password_and_obtained(creds,
&password_obtained);