From f42cb91cbfd4bede7d5a12a63c9bee0b2af4e262 Mon Sep 17 00:00:00 2001 From: Rik van Riel Date: Tue, 10 Oct 2023 23:30:13 -0400 Subject: [PATCH] execve.2: execve also returns E2BIG if a string is too long The execve syscall returns -E2BIG in 3 cases: - The total length of the command line arguments and environment is too large. - An argument or environment string is longer than MAX_ARG_STRLEN. - The full path to the executable exceeds MAX_ARG_STRLEN. Spell out all 3 cases in the -E2BIG section. Signed-off-by: Rik van Riel Suggested-by: Matthew House --- man2/execve.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man2/execve.2 b/man2/execve.2 index 0d9582492a..85c6ec15df 100644 --- a/man2/execve.2 +++ b/man2/execve.2 @@ -449,7 +449,8 @@ The total number of bytes in the environment .RI ( envp ) and argument list .RI ( argv ) -is too large. +is too large, an argument or environment string is too long, or +the full path name to the executable is too long. .TP .B EACCES Search permission is denied on a component of the path prefix of