chiark / gitweb /
util: loop_write - accept 0-length message
[elogind.git] / src / shared / smack-util.c
index 64e213489e21726047f71f6898e4f5fd8536fbbf..2e24b1ea992e0dea7deb8079ec276d8c8cc54a9a 100644 (file)
@@ -24,6 +24,7 @@
 #include <sys/xattr.h>
 
 #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;
         }