Skip to content

Commit

Permalink
libselinux: state setexecfilecon(3) sets errno on failure
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: James Carter <[email protected]>
  • Loading branch information
cgzones authored and jwcart2 committed Dec 12, 2023
1 parent 4c8bf60 commit 5939fb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libselinux/man/man3/getexeccon.3
Original file line number Diff line number Diff line change
Expand Up @@ -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 (),
Expand Down

0 comments on commit 5939fb9

Please sign in to comment.