From 23d3a1956b00256897a921690f34e5e618f8fc3c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 Apr 2007 06:03:54 +0000 Subject: 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) --- source3/utils/smbpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils') 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); } -- cgit