[BusyBox] bug#1121: fd leak in busybox sh

Erik Andersen andersen at lineo.com
Tue Mar 6 20:29:36 UTC 2001


On Tue Mar 06, 2001 at 08:43:38AM -0700, Quinn Jensen wrote:
> Package: busybox
> Version: 0.50pre
> kernel is 2.4.2 on mips
> 
> In the case where input was coming from a file
> as opposed to stdin, shouldn't builtin_exec() close
> it's command input before exec'ing?  The following
> script eventually dies with "sh: test3: Too many open files".
> 
> (lacking while or goto, I'm using exec as a way to
> get the script to loop indefinitely)
> 
> 
> 
> #!/bin/sh
> date
> exec sh $1

Ok, I've just checked in a patch that fixes this.  I've tested
it and it indeed fixes things right up, so I'm closing this bug.

Thanks for letting me know,

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list