fd leak in busybox sh

Quinn Jensen jensenq at Lineo.COM
Tue Mar 6 15:43:38 UTC 2001


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


---------------------------------------
Received: (at 1121-done) by bugs.lineo.com; 6 Mar 2001 20:29:36 +0000


More information about the busybox mailing list