summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-04-04 06:03:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:09 -0500
commit23d3a1956b00256897a921690f34e5e618f8fc3c (patch)
treeedb185dac8d5d402a0e3aa42583a79d5645b222f
parent06ec19e2fb0e5e761c2ea7460bb71bc0cb5e66da (diff)
downloadsamba-23d3a1956b00256897a921690f34e5e618f8fc3c.tar.gz
samba-23d3a1956b00256897a921690f34e5e618f8fc3c.tar.bz2
samba-23d3a1956b00256897a921690f34e5e618f8fc3c.zip
r22071: Make the error message for incorrect use of '-c' show the parameter as used.
This means that smbpasswd -c user (which in htpasswd creates a new file) and smbpasswd -c /not/my/smb.conf should give errors an admin will think to chase down. Andrew Bartlett (This used to be commit 721375e14cfcef88061c9e4d4a1f3ca2f33fa9aa)
-rw-r--r--source3/utils/smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index e7bd0e5fae..9217956781 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -190,7 +190,7 @@ static int process_options(int argc, char **argv, int local_flags)
if (!lp_load(configfile,True,False,False,True)) {
fprintf(stderr, "Can't load %s - run testparm to debug it\n",
- dyn_CONFIGFILE);
+ configfile);
exit(1);
}