From 853549f2c3ce124327d0e4503c67effce99c267f Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 11 Oct 2006 21:14:30 +0000 Subject: [PATCH] Fixed pusb_check return values --- src/pusb_check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pusb_check.c b/src/pusb_check.c index 8387eaf..85c59b7 100644 --- a/src/pusb_check.c +++ b/src/pusb_check.c @@ -119,11 +119,11 @@ int main(int argc, char **argv) } pusb_conf_init(&opts); if (!pusb_conf_parse(conf_file, &opts, user, service)) - return (0); + return (1); opts.quiet = quiet; pusb_log_init(&opts); if (mode == 1) - return (pusb_check_perform_authentication(&opts, user, service)); + return (!pusb_check_perform_authentication(&opts, user, service)); else if (mode == 2) pusb_check_conf_dump(&opts); return (0);