Subject: Re: CVS commit: pkgsrc/misc/dialog
To: Jeremy C. Reed <reed@reedmedia.net>
From: Alistair Crooks <agc@pkgsrc.org>
List: pkgsrc-changes
Date: 11/08/2005 20:54:00
On Tue, Nov 08, 2005 at 09:29:22AM -0800, Jeremy C. Reed wrote:
> I forgot to commit, but the fix from the developer (which I believe will
> be in next version) is:
>
> - *stdin = *freopen(device, "r", stdin);
> + if (freopen(device, "r", stdin) == 0)
> + dlg_exiterr("cannot open tty-input");
freopen returns a FILE *, so please compare the return value to NULL.
Thanks,
Alistair