aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/imgact_shell.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-10-31 11:12:59 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-10-31 11:12:59 +0000
commit7579614b6dbf450fe020e1b6931ac86fd721d6f7 (patch)
tree135423d3fa0f7d9dcef0abbdd91766cefe6decb7 /sys/kern/imgact_shell.c
parent6d25ea1fa6800529f0d513a937d1e632b61909a3 (diff)
downloadsrc-7579614b6dbf450fe020e1b6931ac86fd721d6f7.tar.gz
src-7579614b6dbf450fe020e1b6931ac86fd721d6f7.zip
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>
Notes
Notes: svn path=/head/; revision=137097
Diffstat (limited to 'sys/kern/imgact_shell.c')
-rw-r--r--sys/kern/imgact_shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c
index 42a42724eb5e..8320fc2f56ef 100644
--- a/sys/kern/imgact_shell.c
+++ b/sys/kern/imgact_shell.c
@@ -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);
}