On Mon, 2009-03-02 at 22:29 +0100, Alexander Reichle-Schmehl wrote:
> Hi!
>
> Small update: Apparently bts tries to open the corresponding webpage;
> this fails for me my normal iceweasel just displays "File not found"
> (and indeed /tmp/btswZqUKu.html doesn't exist).
Hmmm, it works for me, both on unstable and in a lenny chroot (using
lynx and "lynx --dump" as BROWSER). :-/
The relevant section of bts is:
3259 my ($fh,$livefile) = tempfile("btsXXXXXX",
3260 SUFFIX => ".html",
3261 DIR => File::Spec->tmpdir,
3262 UNLINK => 1);
3263
3264 # Use filehandle for security
3265 open (OUT_LIVE, ">/dev/fd/" . fileno($fh))
3266 or die "bts: writing to temporary file: $!\n";
3267 # Correct relative urls to point to the bts.
3268 $live =~ s%\shref="(?:/cgi-bin/)?(\w+\.cgi)%
href="$btscgiurl$1%g;
3269 print OUT_LIVE $live;
3270 # Some browsers don't like unseekable filehandles,
3271 # so use filename
3272 runbrowser("file://$livefile");
Does changing the UNLINK to 0 help?
Regards,
Adam
--
To unsubscribe, send mail to [email protected].