Index: sys/sys/imgact.h =================================================================== RCS file: /home/ncvs/src/sys/sys/imgact.h,v retrieving revision 1.24 diff -u -r1.24 imgact.h --- sys/sys/imgact.h 26 Sep 2000 05:09:15 -0000 1.24 +++ sys/sys/imgact.h 27 Nov 2001 01:16:43 -0000 @@ -36,7 +36,7 @@ #ifndef _SYS_IMGACT_H_ #define _SYS_IMGACT_H_ -#define MAXSHELLCMDLEN 64 +#define MAXSHELLCMDLEN 128 struct image_params { struct proc *proc; /* our process struct */ Index: sys/kern/imgact_shell.c =================================================================== RCS file: /home/ncvs/src/sys/kern/imgact_shell.c,v retrieving revision 1.22 diff -u -r1.22 imgact_shell.c --- sys/kern/imgact_shell.c 26 Apr 2000 20:58:39 -0000 1.22 +++ sys/kern/imgact_shell.c 26 Nov 2001 23:52:46 -0000 @@ -74,7 +74,7 @@ */ for (ihp = &image_header[2]; *ihp != '\n' && *ihp != '#'; ++ihp) { if (ihp >= &image_header[MAXSHELLCMDLEN]) - return(ENOEXEC); + return(ENAMETOOLONG); } line_endp = ihp; Index: lib/libc/sys/execve.2 =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/execve.2,v retrieving revision 1.29 diff -u -r1.29 execve.2 --- lib/libc/sys/execve.2 26 Oct 2001 17:38:20 -0000 1.29 +++ lib/libc/sys/execve.2 27 Nov 2001 00:17:22 -0000 @@ -210,6 +210,9 @@ .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