From owner-freebsd-current Sat Feb 6 10:53:31 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA10393 for freebsd-current-outgoing; Sat, 6 Feb 1999 10:53:31 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from poboxer.pobox.com ([208.149.16.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA10379 for ; Sat, 6 Feb 1999 10:53:27 -0800 (PST) (envelope-from alk@poboxer.pobox.com) Received: (from alk@localhost) by poboxer.pobox.com (8.9.2/8.9.1) id MAA06195; Sat, 6 Feb 1999 12:40:01 -0600 (CST) (envelope-from alk) From: Tony Kimball MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 6 Feb 1999 12:39:21 -0600 (CST) X-Face: \h9Jg:Cuivl4S*UP-)gO.6O=T]]@ncM*tn4zG);)lk#4|lqEx=*talx?.Gk,dMQU2)ptPC17cpBzm(l'M|H8BUF1&]dDCxZ.c~Wy6-j,^V1E(NtX$FpkkdnJixsJHE95JlhO 5\M3jh'YiO7KPCn0~W`Ro44_TB@&JuuqRqgPL'0/{):7rU-%.*@/>q?1&Ed Reply-To: alk@pobox.com To: zach@uffdaonline.net Cc: current@FreeBSD.ORG Subject: Re: imgact_shell.c ENOEXEC References: <14011.64749.572752.41299@avalon.east> <19990206112246.A26991@znh.org> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14012.34942.338695.378661@avalon.east> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Quoth Zach Heilig on Sat, 6 February: : On Sat, Feb 06, 1999 at 02:28:38AM -0600, Tony Kimball wrote: : > In the file of the subject, I notice this: : : > /* : > * Don't allow a shell script to be the shell for a shell : > * script. :-) : > */ : > if (imgp->interpreted) : > return(ENOEXEC); : : > Why not? I'd like to. : : Imagine this: : : $ file /tmp/test.sh : /tmp/test.sh: a /tmp/test.sh script text : $ /tmp/test.sh : Won't this just fail when the recursion level is such that the command length exceeds stringspace? Ah, I see the difference: /* * Copy to end of token. No need to watch stringspace * because this is at the front of the string buffer * and the maximum shell command length is tiny. */ Very bogus. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message