diff --git a/libselinux/src/fgetfilecon.c b/libselinux/src/fgetfilecon.c index c88d515d..3395c9f9 100644 --- a/libselinux/src/fgetfilecon.c +++ b/libselinux/src/fgetfilecon.c @@ -39,7 +39,7 @@ int fgetfilecon_raw(int fd, security_context_t * context) out: if (ret == 0) { /* Re-map empty attribute values to errors. */ - errno = EOPNOTSUPP; + errno = ENOTSUP; ret = -1; } if (ret < 0) diff --git a/libselinux/src/getfilecon.c b/libselinux/src/getfilecon.c index 67e4463d..eb2ce8a4 100644 --- a/libselinux/src/getfilecon.c +++ b/libselinux/src/getfilecon.c @@ -39,7 +39,7 @@ int getfilecon_raw(const char *path, security_context_t * context) out: if (ret == 0) { /* Re-map empty attribute values to errors. */ - errno = EOPNOTSUPP; + errno = ENOTSUP; ret = -1; } if (ret < 0) diff --git a/libselinux/src/lgetfilecon.c b/libselinux/src/lgetfilecon.c index a53f56ee..58dc8071 100644 --- a/libselinux/src/lgetfilecon.c +++ b/libselinux/src/lgetfilecon.c @@ -39,7 +39,7 @@ int lgetfilecon_raw(const char *path, security_context_t * context) out: if (ret == 0) { /* Re-map empty attribute values to errors. */ - errno = EOPNOTSUPP; + errno = ENOTSUP; ret = -1; } if (ret < 0)