#987764 devscripts: [bts] bts bugs is racy

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Tobias Frost
Date:
2021-06-08 12:42:03 UTC
Severity:
normal
#987764#5
Date:
2021-04-29 07:18:59 UTC
From:
To:
bts bugs does (at least here) not work with (an already opened*) firefox,
as the generated temporariy file is already deleted when firefox tries to
open it.
A workaround is to not delete the temporary file by saying UNLINK => 0 in
line 3843 of /usr/bin/bts, but that is not a proper fix…

(* Not tested if firefox was closed before.)

#987764#10
Date:
2021-06-08 12:20:45 UTC
From:
To:
Hello,

I can reproduce this bug locally. If firefox is closed, then the bug
will display fine, as the temporary file will be created before firefox
is opened, and deleted when firefox is closed. However, when already
running a firefox instance, the temporary file seems to be deleted early.

I think this is because calling `firefox` when another instance is
running will return immediatly (and open a new tab in the existing
instance). The devscript probably deletes the temporary file directly
upon program return.

Best regards,

Romain.