summaryrefslogtreecommitdiffstats
path: root/source/utils/smbpasswd.c
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
commit721375e14cfcef88061c9e4d4a1f3ca2f33fa9aa (patch)
tree1b83555ac1ebf8ee70fec68fa01fd50cbbd4598e /source/utils/smbpasswd.c
parentc1cb6d059b2a8539bc8a05ea4467d136bbb2ff38 (diff)
downloadsamba-721375e14cfcef88061c9e4d4a1f3ca2f33fa9aa.tar.gz
samba-721375e14cfcef88061c9e4d4a1f3ca2f33fa9aa.tar.xz
samba-721375e14cfcef88061c9e4d4a1f3ca2f33fa9aa.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
Diffstat (limited to 'source/utils/smbpasswd.c')
-rw-r--r--source/utils/smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c
index e7bd0e5faee..92179567812 100644
--- a/source/utils/smbpasswd.c
+++ b/source/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);
}