diff options
author | pjd <pjd@FreeBSD.org> | 2004-10-31 11:12:59 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-10-31 11:12:59 +0000 |
commit | aa8963bf64c1e502beaf33343dd3d018ebe2e2d9 (patch) | |
tree | 135423d3fa0f7d9dcef0abbdd91766cefe6decb7 | |
parent | b9ce4067625ebe29840fdf08530d36d8269ed2cc (diff) | |
download | FreeBSD-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>
-rw-r--r-- | sys/kern/imgact_shell.c | 2 |
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); } |