[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fwd: Bug#499139: mksh closes file descriptors > 2 on exec



Hello,

the submitter thinks that the bug is relatively critical, because it made
his dpkg freeze when using mksh as /bin/sh, which “should” be supported.

Any opinions on it?

Thanks,
//mirabilos
-- 
[...] if maybe ext3fs wasn't a better pick, or jfs, or maybe reiserfs, oh but
what about xfs, and if only i had waited until reiser4 was ready... in the be-
ginning, there was ffs, and in the middle, there was ffs, and at the end, there
was still ffs, and the sys admins knew it was good. :)  -- Ted Unangst über *fs

---------- Forwarded message ----------
From: Thorsten Glaser <tg@mirbsd.de>
Message-ID: <Pine.BSM.4.64L.0809171934580.28480@herc.mirbsd.org>
To: 499139@bugs.debian.org
Cc: debian-bugs-dist@lists.debian.org, control@bugs.debian.org
Date: Wed, 17 Sep 2008 19:42:06 +0000 (UTC)
Subject: Re: Bug#499139: Possible problem with debconf and shell interaction?

tags 499139 = upstream confirmed fixed-upstream patch
retitle 499139 mksh closes file descriptors > 2 on exec
thanks

Dixi quod…

>This seems to be related to #154540 – found after I got the information
>that it only happens to pdksh with FSH not set.

It in fact is. This is fixed upstream with changeset 10048D15ABE2EA76C75,
which I have attached as-is for further inspection. For Korn shells, this
behaviour is actually expected, but there is a way to make it behave more
like a POSIX shell, so I revived a code path enabling that mode if called
as sh or -sh, and put the appropriate code change in there.

>Would a fix for this bug be worth a freeze exception? Otherwise, I’ll
>just fix it upstream, and the Debian package would be updated with a
>new upstream version in ~1-2 months or so.

The patch is more than only a couple of lines, but for Lenny I could
prepare a smaller patch with only the required functionality (and,
optionally, the test cases). Opinions?

//mirabilos
-- 
> Hi, does anyone sell openbsd stickers by themselves and not packaged
> with other products?
No, the only way I've seen them sold is for $40 with a free OpenBSD CD.
	-- Haroon Khalid and Steve Shockley in gmane.os.openbsd.misc


Reply to: