Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2000 09:56:06 +0100
From:      Martin Cracauer <cracauer@cons.org>
To:        Shawn Halpenny <malachai@iname.com>
Cc:        freebsd-bugs@FreeBSD.ORG, ryand@amazon.com
Subject:   Re: [PATCH] Re: bin/16393: /bin/sh doesn't strip comments on shebang line
Message-ID:  <20000215095606.A94896@cons.org>
In-Reply-To: <200002102120.NAA69877@freefall.freebsd.org>; from malachai@iname.com on Thu, Feb 10, 2000 at 01:20:02PM -0800
References:  <200002102120.NAA69877@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii

This has been fixed in version 1.21. Since there is no standard that
specifies how the #! - line should work, could the both of you please
give the current version a try if it supports the cases you need?

Either get the neest -current or try the appended patch.

Thanks
	Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
BSD User Group Hamburg, Germany     http://www.bsdhh.org/

--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=l

Index: kern/imgact_shell.c
===================================================================
RCS file: /home/CVS-FreeBSD/src/sys/kern/imgact_shell.c,v
retrieving revision 1.20
diff -c -r1.20 imgact_shell.c
*** kern/imgact_shell.c	1999/08/28 00:46:10	1.20
--- kern/imgact_shell.c	2000/02/11 16:30:38
***************
*** 76,82 ****
  	/*
  	 * Find end of line; return if the line > MAXSHELLCMDLEN long.
  	 */
! 	for (ihp = &image_header[2]; *ihp != '\n'; ++ihp) {
  		if (ihp >= &image_header[MAXSHELLCMDLEN])
  			return(ENOEXEC);
  	}
--- 76,82 ----
  	/*
  	 * Find end of line; return if the line > MAXSHELLCMDLEN long.
  	 */
! 	for (ihp = &image_header[2]; *ihp != '\n' && *ihp != '#'; ++ihp) {
  		if (ihp >= &image_header[MAXSHELLCMDLEN])
  			return(ENOEXEC);
  	}

--n8g4imXOkfNTN/H1--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000215095606.A94896>