summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-07-24 12:27:50 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-07-25 09:14:19 +0200
commit7a73a130d55d3369f2d465f8268fca65de29fd37 (patch)
treedfa79dbffadd987441778a050426c6af4bae0308 /source3/client
parenta553f12418a16c58b278745e3da6329ce24fe3c7 (diff)
downloadsamba-7a73a130d55d3369f2d465f8268fca65de29fd37.tar.gz
s3:client: Make it possible use smbspool in selftest
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/smbspool.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index f8489d0d9cf..71c026119ad 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -26,6 +26,7 @@
#include "system/filesys.h"
#include "system/passwd.h"
#include "libsmb/libsmb.h"
+#include "lib/param/param.h"
/*
* Starting with CUPS 1.3, Kerberos support is provided by cupsd including
@@ -96,6 +97,7 @@ main(int argc, /* I - Number of command-line arguments */
int tries = 0;
bool need_auth = true;
const char *dev_uri;
+ const char *config_file = NULL;
TALLOC_CTX *frame = talloc_stackframe();
null_str[0] = '\0';
@@ -244,8 +246,11 @@ main(int argc, /* I - Number of command-line arguments */
smb_init_locale();
- if (!lp_load_client(get_dyn_CONFIGFILE())) {
- fprintf(stderr, "ERROR: Can't load %s - run testparm to debug it\n", get_dyn_CONFIGFILE());
+ config_file = lp_default_path();
+ if (!lp_load_client(config_file)) {
+ fprintf(stderr,
+ "ERROR: Can't load %s - run testparm to debug it\n",
+ config_file);
goto done;
}