mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-02-20 08:37:55 +07:00
Replace ENOTSUP with EOPNOTSUPP
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
3a864f5e04
commit
f5625ab8c6
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user