diff mbox series

[3/3] libselinux: state setexecfilecon(3) sets errno on failure

Message ID 20231211150031.127850-3-cgzones@googlemail.com (mailing list archive)
State Accepted
Commit 5939fb960ba4
Headers show
Series [1/3] libselinux: update const qualifier of parameters in man pages | expand

Commit Message

Christian Göttsche Dec. 11, 2023, 3 p.m. UTC
The other functions (getexeccon(3) and setexeccon(3)) from the man page
also set errno on failure similar to the getcon(3) function family.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
---
 libselinux/man/man3/getexeccon.3 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libselinux/man/man3/getexeccon.3 b/libselinux/man/man3/getexeccon.3
index 9cc24e8c..edaa6669 100644
--- a/libselinux/man/man3/getexeccon.3
+++ b/libselinux/man/man3/getexeccon.3
@@ -89,7 +89,9 @@  then executes the specified filename with the provided argument and
 environment arrays.
 .
 .SH "RETURN VALUE"
-On error \-1 is returned.
+On failure, \-1 is returned and
+.I errno
+is  set appropriately.
 
 On success
 .BR getexeccon (),