diff options
author | Andreas Schneider <asn@samba.org> | 2021-04-27 16:19:31 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-06-29 02:19:35 +0000 |
commit | 9f69e93bad38d45a53219cf248ba92097298b7e7 (patch) | |
tree | 2c52f7ad1709263e4a47f6e9b451eae713e29790 /lib | |
parent | 9f786df2a2fd5c72b331625db74547fc88ad3e83 (diff) | |
download | samba-9f69e93bad38d45a53219cf248ba92097298b7e7.tar.gz |
lib:cmdline: Ignore the return code of cli_credentials_guess()
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cmdline/cmdline.c | 9 |
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); |