diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-07-08 00:08:22 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-07-08 16:09:27 +0200 |
commit | ef8304de533ec6c0999a42e0c72e48a942735641 (patch) | |
tree | 2a2719079a9284e7ebfa73cab50b96c890d68d56 /src/shared/smack-util.c | |
parent | 2f3745dd2652d1aec57d945291a2e67a3304d559 (diff) | |
download | systemd-ef8304de533ec6c0999a42e0c72e48a942735641.tar.gz |
smack: catch more types of 'not supported' errors
Diffstat (limited to 'src/shared/smack-util.c')
-rw-r--r-- | src/shared/smack-util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/smack-util.c b/src/shared/smack-util.c index 0df1778cb2..8f90a2096d 100644 --- a/src/shared/smack-util.c +++ b/src/shared/smack-util.c @@ -12,6 +12,7 @@ #include <unistd.h> #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 */ |