From: Frantisek Sumsal Date: Mon, 14 Sep 2020 14:16:59 +0000 (+0200) Subject: home: return SYNTHETIC_ERRNO() when appropriate X-Git-Tag: v247-rc1~237^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=890ea05ac24746051d092518d0796e106b1715e3;p=thirdparty%2Fsystemd.git home: return SYNTHETIC_ERRNO() when appropriate --- diff --git a/src/home/homectl-fido2.c b/src/home/homectl-fido2.c index b7b2c1a3b5b..0d087c79f0e 100644 --- a/src/home/homectl-fido2.c +++ b/src/home/homectl-fido2.c @@ -534,6 +534,7 @@ finish: fido_dev_info_free(&di, di_size); return r; #else - return log_error_errno(EOPNOTSUPP, "FIDO2 tokens not supported on this build."); + return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), + "FIDO2 tokens not supported on this build."); #endif } diff --git a/src/home/homectl-pkcs11.c b/src/home/homectl-pkcs11.c index f4253ed7bf2..3507841faa8 100644 --- a/src/home/homectl-pkcs11.c +++ b/src/home/homectl-pkcs11.c @@ -475,6 +475,7 @@ int find_pkcs11_token_auto(char **ret) { return 0; #else - return log_error_errno(EOPNOTSUPP, "PKCS#11 tokens not supported on this build."); + return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), + "PKCS#11 tokens not supported on this build."); #endif }