diff options
Diffstat (limited to 'source3/rpcclient/rpcclient.c')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 66e84fc1a93..773548a7db3 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -620,8 +620,7 @@ static void usage(void) BOOL interactive = True; int opt; int olddebug; - pstring cmdstr = "", - servicesf = CONFIGFILE; + pstring cmdstr = ""; struct ntuser_creds creds; struct cli_state cli; fstring password, @@ -661,7 +660,7 @@ static void usage(void) break; case 's': - pstrcpy(servicesf, optarg); + pstrcpy(dyn_CONFIGFILE, optarg); break; case 'U': { @@ -710,8 +709,8 @@ static void usage(void) /* Load smb.conf file */ /* FIXME! How to get this DEBUGLEVEL to last over lp_load()? */ olddebug = DEBUGLEVEL; - if (!lp_load(servicesf,True,False,False)) { - fprintf(stderr, "Can't load %s\n", servicesf); + if (!lp_load(dyn_CONFIGFILE,True,False,False)) { + fprintf(stderr, "Can't load %s\n", dyn_CONFIGFILE); } DEBUGLEVEL = olddebug; |