X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fsmack-util.c;h=a73a996cf6d5623608ecd25436cd0d286e31b35f;hb=2b8a4d0a532c3bd4039f1a3ee6943ec0ef855f0d;hp=64e213489e21726047f71f6898e4f5fd8536fbbf;hpb=fae5694e1ab3226fea410aea86bd039831395ccf;p=elogind.git diff --git a/src/shared/smack-util.c b/src/shared/smack-util.c index 64e213489..a73a996cf 100644 --- a/src/shared/smack-util.c +++ b/src/shared/smack-util.c @@ -187,7 +187,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; }