diff options
author | Christian Ambach <ambi@samba.org> | 2016-01-27 21:56:10 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-01-28 09:58:26 +0100 |
commit | bf1c1ad068a763108f9b8f79431de522783a4302 (patch) | |
tree | e3f0b955b022e634b029a4571fef4156bb00e20d /source3 | |
parent | e1548c5bf77186c72f0257592e9084e3b039b87c (diff) | |
download | samba-bf1c1ad068a763108f9b8f79431de522783a4302.tar.gz |
s3-utils/smbget: Fix reading the rcfile
shortName in POPT_AUTOHELP is null, so the loop always stopped at this
item.
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbget.c b/source3/utils/smbget.c index 3ced8df9e3c..e332b2d99b4 100644 --- a/source3/utils/smbget.c +++ b/source3/utils/smbget.c @@ -707,7 +707,7 @@ static int readrcfile(const char *name, const struct poptOption long_options[]) found = false; - for (i = 0; long_options[i].shortName; i++) { + for (i = 0; long_options[i].argInfo; i++) { if (!long_options[i].longName) { continue; } |