From ddc3e116239395dd61e3ec53d6854754e53fd8e0 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 --- pam_usb/src/pusb_check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pam_usb/src/pusb_check.c b/pam_usb/src/pusb_check.c index 8387eaf..85c59b7 100644 --- a/pam_usb/src/pusb_check.c +++ b/pam_usb/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);