summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjwd <jwd@FreeBSD.org>2001-11-28 03:26:58 +0000
committerjwd <jwd@FreeBSD.org>2001-11-28 03:26:58 +0000
commit2a6f1a68f9a37cfcb5a656dc1e4220b5cb3686bd (patch)
tree2d7cb338d9de6526161b14c0d81b2bd15578a3c6 /lib
parentca5b2bc739a0ba228a9c6374dcd9483191fea795 (diff)
downloadFreeBSD-src-2a6f1a68f9a37cfcb5a656dc1e4220b5cb3686bd.zip
FreeBSD-src-2a6f1a68f9a37cfcb5a656dc1e4220b5cb3686bd.tar.gz
Return a more meaningful errno when the length of the interpreter
exceeds MAXSHELLCMDLEN to avoid secondary /bin/sh execution. Update execve man page to reflect change. Increase MAXSHELLCMDLEN to a slightly more meaningful value. PR: kern/32106 Submitted by: b@etek.chalmers.se Reviewed by: bsd MFC after: 2 weeks
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/execve.23
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2
index 56aefcf..84e9537 100644
--- a/lib/libc/sys/execve.2
+++ b/lib/libc/sys/execve.2
@@ -210,6 +210,9 @@ A component of the path prefix is not a directory.
.It Bq Er ENAMETOOLONG
A component of a pathname exceeded 255 characters,
or an entire path name exceeded 1023 characters.
+.It Bq Er ENAMETOOLONG
+When invoking an interpreted script, the interpreter name
+exceeds MAXSHELLCMDLEN characters.
.It Bq Er ENOENT
The new process file does not exist.
.It Bq Er ELOOP
OpenPOWER on IntegriCloud