pwquality: fix use of ERRNO_IS_NOT_SUPPORTED
authorDmitry V. Levin <ldv@strace.io>
Wed, 5 Jul 2023 08:00:00 +0000 (08:00 +0000)
committerDmitry V. Levin <ldv@strace.io>
Thu, 6 Jul 2023 10:59:41 +0000 (10:59 +0000)
commit29dd2e253c74c7ab2fed6fb6a67a87089197253f
tree6d5c279c29369acdd989fe411cee349a8c09c2fe
parent5bc9ea070f7734a9b86c6f7f8e2ed4365229a6c1
pwquality: fix use of ERRNO_IS_NOT_SUPPORTED

Given that ERRNO_IS_*() also match positive values, call
ERRNO_IS_NOT_SUPPORTED() only if the value returned by
pwq_allocate_context() is negative.
src/shared/pwquality-util.c