diff --git a/man2/add_key.2 b/man2/add_key.2 index 4fa99fffa..85a11340f 100644 --- a/man2/add_key.2 +++ b/man2/add_key.2 @@ -91,8 +91,11 @@ On error, the value \-1 will be returned and errno will have been set to an appropriate error. .SH ERRORS .TP -.B ENOKEY -The keyring doesn't exist. +.B EACCES +The keyring wasn't available for modification by the user. +.TP +.B EINVAL +The payload data was invalid. .TP .B EKEYEXPIRED The keyring has expired. @@ -100,8 +103,8 @@ The keyring has expired. .B EKEYREVOKED The keyring has been revoked. .TP -.B EINVAL -The payload data was invalid. +.B ENOKEY +The keyring doesn't exist. .TP .B ENOMEM Insufficient memory to create a key. @@ -109,9 +112,6 @@ Insufficient memory to create a key. .B EDQUOT The key quota for this user would be exceeded by creating this key or linking it to the keyring. -.TP -.B EACCES -The keyring wasn't available for modification by the user. .SH LINKING Although this is a Linux system call, it is not present in .I libc