From 2f624c94c70a1a3dcc0387350030f166d6bb6d56 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?=
Date: Tue, 4 Dec 2012 02:33:02 +0000
Subject: [PATCH] libselinux: man: context_new(3): fix the return value
description
Signed-off-by: Eric Paris
Acked-by: Dan Walsh
---
libselinux/man/man3/context_new.3 | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libselinux/man/man3/context_new.3 b/libselinux/man/man3/context_new.3
index 02574457..3dabac3d 100644
--- a/libselinux/man/man3/context_new.3
+++ b/libselinux/man/man3/context_new.3
@@ -69,7 +69,13 @@ structure.
set a context component.
.
.SH "RETURN VALUE"
-On success, zero is returned. On failure, \-1 is returned and
+On failure
+.BR context_*_set ()
+functions return non-zero and 0 on success.
+
+The other functions return NULL on failure and non-NULL on success.
+
+On failure
.I errno
is set appropriately.
.