From: Lennart Poettering Date: Thu, 7 Jul 2022 22:08:22 +0000 (+0200) Subject: smack: catch more types of 'not supported' errors X-Git-Tag: v252-rc1~701 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef8304de533ec6c0999a42e0c72e48a942735641;p=thirdparty%2Fsystemd.git smack: catch more types of 'not supported' errors --- diff --git a/src/shared/smack-util.c b/src/shared/smack-util.c index 0df1778cb2d..8f90a2096d4 100644 --- a/src/shared/smack-util.c +++ b/src/shared/smack-util.c @@ -12,6 +12,7 @@ #include #include "alloc-util.h" +#include "errno-util.h" #include "fd-util.h" #include "fileio.h" #include "log.h" @@ -158,7 +159,7 @@ static int smack_fix_fd(int fd, const char *abspath, LabelFixFlags flags) { r = -errno; /* If the FS doesn't support labels, then exit without warning */ - if (r == -EOPNOTSUPP) + if (ERRNO_IS_NOT_SUPPORTED(r)) return 0; /* It the FS is read-only and we were told to ignore failures caused by that, suppress error */