diff mbox series

[1/1] man: clarify that keyctl_set_reqkey_keyring(3) returns the old default

Message ID 20200513222306.870160-2-list.lkml.keyrings@me.benboeckel.net (mailing list archive)
State New
Headers show
Series Clarify keyctl_set_reqkey_keyring(3) return value | expand

Commit Message

Ben Boeckel May 13, 2020, 10:23 p.m. UTC
From: Ben Boeckel <mathstuf@gmail.com>

The prose mentions this, but the return value section gave conflicting
information.

Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
---
 man/keyctl_set_reqkey_keyring.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

David Howells May 18, 2020, 2:06 p.m. UTC | #1
Ben Boeckel <me@benboeckel.net> wrote:

> From: Ben Boeckel <mathstuf@gmail.com>
> 
> The prose mentions this, but the return value section gave conflicting
> information.
> 
> Signed-off-by: Ben Boeckel <mathstuf@gmail.com>

Applied.
diff mbox series

Patch

diff --git a/man/keyctl_set_reqkey_keyring.3 b/man/keyctl_set_reqkey_keyring.3
index 00da586..6e6725e 100644
--- a/man/keyctl_set_reqkey_keyring.3
+++ b/man/keyctl_set_reqkey_keyring.3
@@ -66,8 +66,8 @@  and
 .SH RETURN VALUE
 On success
 .BR keyctl_set_reqkey_keyring ()
-returns
-.BR 0 .
+returns the serial number of the keyring which was the previous default for the
+current thread.
 On error, the value
 .B -1
 will be returned and