[pkg-bacula-devel] UCF files left over in /

Sven Hartge sven at svenhartge.de
Mon Apr 23 23:34:16 BST 2018


On 24.04.2018 00:19, Sven Hartge wrote:
> Um 00:11 Uhr am 24.04.18 schrieb Sven Hartge:

>> I see left over files from UCF in / on my systems:
> 
> I see the problem.
> 
> The postinst calls mktemp wrong. When mktemp is called with a template 
> filename, you have to specify the full path, if you don't do this, then it 
> uses the current working directory, which is / during package 
> installation.

I have looked at other package scripts in Debian and committed a fix.

There is one alternative route: If mktemp is called with "--tmpdir"
without specifying a directory and the template contains a relative
path, then first $TMPDIR is used as temporary directory and, if the
variable is empty/non-existant, the hard-coded default "/tmp".

But I don't see a compelling reason to honor $TMPDIR here and all
package scripts either use "-p /tmp" or directly specify an absolute
path in the template.

Grüße,
Sven.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-bacula-devel/attachments/20180424/d4562363/attachment-0001.sig>


More information about the pkg-bacula-devel mailing list