chiark / gitweb /
tree-wide: there is no ENOTSUP on linux
[elogind.git] / src / shared / smack-util.c
index 64e213489e21726047f71f6898e4f5fd8536fbbf..a73a996cf6d5623608ecd25436cd0d286e31b35f 100644 (file)
@@ -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;
         }