diff options
author | Christian Hesse <mail@eworm.de> | 2016-05-04 13:48:50 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-05-04 13:48:50 +0200 |
commit | 2078941b3737d7a1d8b2d84a9771c18d33aa2925 (patch) | |
tree | 6ee43595f290992f86da555512445d0bf0493a44 /udev | |
parent | 6bd16e9caeadd43be66398c8d9d4fa71bb0d5b07 (diff) | |
download | mkinitcpio-ykfde-2078941b3737d7a1d8b2d84a9771c18d33aa2925.tar.gz mkinitcpio-ykfde-2078941b3737d7a1d8b2d84a9771c18d33aa2925.tar.zst |
fix error condition for yk_get_serial()
Diffstat (limited to 'udev')
-rw-r--r-- | udev/ykfde.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/udev/ykfde.c b/udev/ykfde.c index 43b25e4..3d303e6 100644 --- a/udev/ykfde.c +++ b/udev/ykfde.c @@ -243,8 +243,9 @@ int main(int argc, char **argv) { } /* read the serial number from key */ - if ((rc = yk_get_serial(yk, 0, 0, &serial)) < 0) { + if (yk_get_serial(yk, 0, 0, &serial) == 0) { perror("yk_get_serial() failed"); + rc = EXIT_FAILURE; goto out30; } |