X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fsmack-util.c;h=2e24b1ea992e0dea7deb8079ec276d8c8cc54a9a;hb=2c38d6cdf68973efb758ab546fb7553e3320bb84;hp=64e213489e21726047f71f6898e4f5fd8536fbbf;hpb=fae5694e1ab3226fea410aea86bd039831395ccf;p=elogind.git diff --git a/src/shared/smack-util.c b/src/shared/smack-util.c index 64e213489..2e24b1ea9 100644 --- a/src/shared/smack-util.c +++ b/src/shared/smack-util.c @@ -24,6 +24,7 @@ #include #include "util.h" +#include "process-util.h" #include "path-util.h" #include "fileio.h" #include "smack-util.h" @@ -187,7 +188,7 @@ int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs) { r = lsetxattr(path, "security.SMACK64", label, strlen(label), 0); /* If the FS doesn't support labels, then exit without warning */ - if (r < 0 && errno == ENOTSUP) + if (r < 0 && errno == EOPNOTSUPP) return 0; }