summaryrefslogtreecommitdiffstats
path: root/sys/kern/imgact_shell.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-10-31 11:12:59 +0000
committerpjd <pjd@FreeBSD.org>2004-10-31 11:12:59 +0000
commitaa8963bf64c1e502beaf33343dd3d018ebe2e2d9 (patch)
tree135423d3fa0f7d9dcef0abbdd91766cefe6decb7 /sys/kern/imgact_shell.c
parentb9ce4067625ebe29840fdf08530d36d8269ed2cc (diff)
downloadFreeBSD-src-aa8963bf64c1e502beaf33343dd3d018ebe2e2d9.zip
FreeBSD-src-aa8963bf64c1e502beaf33343dd3d018ebe2e2d9.tar.gz
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>
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 42a4272..8320fc2 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);
}
OpenPOWER on IntegriCloud