Replace ENOTSUP with EOPNOTSUPP

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Anthony G. Basile 2015-03-18 21:09:57 -04:00
parent 3a864f5e04
commit f5625ab8c6
3 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ int mac_selinux_fix(const char *path, bool ignore_enoent, bool ignore_erofs) {
r = lsetfilecon(path, fcon);
/* If the FS doesn't support labels, then exit without warning */
if (r < 0 && errno == ENOTSUP)
if (r < 0 && errno == EOPNOTSUPP)
return 0;
}
}

View 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;
}

View File

@ -202,7 +202,7 @@ struct udev_ctrl_connection *udev_ctrl_get_connection(struct udev_ctrl *uctrl) {
conn->sock = accept4(uctrl->sock, NULL, NULL, SOCK_CLOEXEC|SOCK_NONBLOCK);
/* Fallback path when accept4() is unavailable */
if ( conn->sock < 0 && (errno == ENOSYS || errno == ENOTSUP) )
if ( conn->sock < 0 && (errno == ENOSYS || errno == EOPNOTSUPP) )
conn->sock = accept4_fallback(uctrl->sock);
#else
conn->sock = accept4_fallback(uctrl->sock);