From 5939fb960ba45294ee419a73919690652767f7c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 11 Dec 2023 16:00:31 +0100 Subject: [PATCH] libselinux: state setexecfilecon(3) sets errno on failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Acked-by: James Carter --- libselinux/man/man3/getexeccon.3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libselinux/man/man3/getexeccon.3 b/libselinux/man/man3/getexeccon.3 index 9cc24e8c9..edaa6669c 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 (),