Don't treat # as a comment in interpreter specification line.
This is magic and no other operating system do so (i.e. Solaris, Tru64, Linux, AIX, HP-UX, Irix, MacOS X, NetBSD). Discussed on: current@ Reported by: S³awek ¯ak <zaks@prioris.mini.pw.edu.pl>
This commit is contained in:
parent
6d25ea1fa6
commit
7579614b6d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137097
@ -73,7 +73,7 @@ exec_shell_imgact(imgp)
|
||||
/*
|
||||
* Find end of line; return if the line > MAXSHELLCMDLEN long.
|
||||
*/
|
||||
for (ihp = &image_header[2]; *ihp != '\n' && *ihp != '#'; ++ihp) {
|
||||
for (ihp = &image_header[2]; *ihp != '\n'; ++ihp) {
|
||||
if (ihp >= &image_header[MAXSHELLCMDLEN])
|
||||
return(ENAMETOOLONG);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user