diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-10-10 11:06:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2022-10-10 16:00:15 +0200 |
commit | 00675c363ffdb0144873ae24ce555556aedcab0d (patch) | |
tree | cb704aa245834efce4ec64d17870304b276a7dfc /src/portable | |
parent | dcf1bf3b6dd934d3af629a1f9f24e083fce85255 (diff) | |
download | systemd-00675c363ffdb0144873ae24ce555556aedcab0d.tar.gz |
tree-wide: add ERRNO_IS_XATTR_ABSENT() helper
We check the same list of error codes on various xattr operations, and
we should on some more. Add a common helper for this purpose.
Diffstat (limited to 'src/portable')
-rw-r--r-- | src/portable/portable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/portable.c b/src/portable/portable.c index 202442903f..7172701ca2 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -278,7 +278,7 @@ static int extract_now( * we have to preserve it. Copy it out so that it can be applied later. */ r = fgetfilecon_raw(fd, &con); - if (r < 0 && errno != ENODATA) + if (r < 0 && !ERRNO_IS_XATTR_ABSENT(errno)) log_debug_errno(errno, "Failed to get SELinux file context from '%s', ignoring: %m", de->d_name); #endif |