#1006826 guestfish: leaves production scrap in $TMPDIR

Package:
guestfish
Source:
libguestfs
Description:
guest filesystem shell
Submitter:
"Francesco Poli (wintermute)"
Date:
2022-03-05 22:33:04 UTC
Severity:
normal
#1006826#5
Date:
2022-03-05 22:30:29 UTC
From:
To:
Hello!

First off, thanks for maintaining guestfish in Debian.

I noticed that using the command leaves "production scrap" in
my ${TMPDIR} .

For instance, if I set

  $ TMPDIR=/dev/shm
  $ export TMPDIR

and I use guestfish to create a virtual machine image,
I see that, after guestfish has successfully completed its task,
there's a lot of production scrap within /dev/shm :

$ du --si -s /dev/shm/.guestfs-1000/
755M    /dev/shm/.guestfs-1000/

More than 750 MB of production scrap!

I have to manually remove that directory, after guestfish
exits.

Why does guestfish do this?
I think it should automatically remove that directory...

Please investigate this bug and fix it and/or forward my
bug report upstream.

Thanks for your time.
Bye!