[Debconf-devel] Teletype bug?
cjwatson at debian.org
Thu Nov 22 22:59:32 UTC 2007
I saw this bug:
... and I think it's because the Teletype frontend leaves need_tty set
to true but doesn't bail out if there's no controlling tty. Is that
correct? Is this patch (copied and pasted from Readline) the right fix?
Just wanted to check I hadn't misunderstood Teletype.
--- Debconf/FrontEnd/Teletype.pm (revision 2248)
+++ Debconf/FrontEnd/Teletype.pm (working copy)
@@ -38,6 +38,11 @@
+ # Yeah, you need a controlling tty. Make sure there is one.
+ open(TESTTY, "/dev/tty") || die gettext("This frontend requires a controlling tty.")."\n";
+ close TESTTY;
Colin Watson [cjwatson at debian.org]
More information about the Debconf-devel