[setup] [PATCH] Redirect stdin from /dev/null when running postinstall scripts

Max Bowsher maxb@ukf.net
Thu Sep 16 15:49:00 GMT 2004


Pavel Tsekov wrote:
> On Mon, 13 Sep 2004, Igor Pechtchanski wrote:
>
>> Hi,
>>
>> The patch below redirects stdin from /dev/null when running postinstall
>> scripts, so that installation doesn't hang if a program called from a
>> postinstall script decides to ask the user something.  AFAICS, this is
>> against the CVS HEAD.
>
> But then what happens with the script that requested user input ? Isn't it
> possible that the package would end up misconfigured ?

Maybe. But better than setup hanging, and it's a pretty major bug in the 
package if it is doing critical user interaction in it's postinstall script.

Max.



More information about the Cygwin-apps mailing list