Skip to content

Commit f42cb91

Browse files
committed
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 <riel@surriel.com> Suggested-by: Matthew House <mattlloydhouse@gmail.com>
1 parent ae6b221 commit f42cb91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

man2/execve.2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,8 @@ The total number of bytes in the environment
449449
.RI ( envp )
450450
and argument list
451451
.RI ( argv )
452-
is too large.
452+
is too large, an argument or environment string is too long, or
453+
the full path name to the executable is too long.
453454
.TP
454455
.B EACCES
455456
Search permission is denied on a component of the path prefix of

0 commit comments

Comments
 (0)