s3:utils/smbget fix option parsing
authorChristian Ambach <ambi@samba.org>
Sat, 20 Feb 2016 20:11:51 +0000 (21:11 +0100)
committerChristian Ambach <ambi@samba.org>
Fri, 26 Feb 2016 10:31:33 +0000 (11:31 +0100)
commitfcb56e0e1150f995823aff7dbcb0c09b87a39f6d
tree511944ca926e875a5e1312c131c58aa5691b3634
parentdc0bd62a236e9d58370fb6d2be668f6a75f2998a
s3:utils/smbget fix option parsing

* use proper values for val in poptOption
* popt does not support bool, so set them via the switch statement
* abort when option parsing reported errors

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/utils/smbget.c