diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-04-04 06:03:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:09 -0500 |
commit | 721375e14cfcef88061c9e4d4a1f3ca2f33fa9aa (patch) | |
tree | 1b83555ac1ebf8ee70fec68fa01fd50cbbd4598e | |
parent | c1cb6d059b2a8539bc8a05ea4467d136bbb2ff38 (diff) | |
download | samba-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
-rw-r--r-- | source/utils/smbpasswd.c | 2 |
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); } |