Author: abartlet Date: 2007-04-04 06:03:54 +0000 (Wed, 04 Apr 2007) New Revision: 22071
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22071 Log: 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 Modified: branches/SAMBA_3_0/source/utils/smbpasswd.c Changeset: Modified: branches/SAMBA_3_0/source/utils/smbpasswd.c =================================================================== --- branches/SAMBA_3_0/source/utils/smbpasswd.c 2007-04-04 04:57:30 UTC (rev 22070) +++ branches/SAMBA_3_0/source/utils/smbpasswd.c 2007-04-04 06:03:54 UTC (rev 22071) @@ -190,7 +190,7 @@ 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); }
