summaryrefslogtreecommitdiff
path: root/source4/client/smbspool.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/client/smbspool.c')
-rw-r--r--source4/client/smbspool.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source4/client/smbspool.c b/source4/client/smbspool.c
index 2703205d7d..21dc5c0e10 100644
--- a/source4/client/smbspool.c
+++ b/source4/client/smbspool.c
@@ -177,10 +177,9 @@ static int smb_print(struct smbcli_state *, char *, FILE *);
setup_logging("smbspool", DEBUG_STDOUT);
- if (!lp_load(dyn_CONFIGFILE))
- {
- fprintf(stderr, "ERROR: Can't load %s - run testparm to debug it\n", dyn_CONFIGFILE);
- return (1);
+ if (!lp_load()) {
+ fprintf(stderr, "ERROR: Can't load %s - run testparm to debug it\n", lp_config_file());
+ return (1);
}
if (workgroup == NULL)