Ticket #4000 (accepted defect) — at Version 1

Opened 5 years ago

Last modified 5 years ago

mc 4.8.23 - extfs data in /tmp/mc-USERNAME not deleted after closing mc (rpm/cpio + deb)

Reported by: ak Owned by: andrew_b
Priority: major Milestone: 4.8.24
Component: mc-vfs Version: 4.8.23
Keywords: extfs Cc: info@…
Blocked By: Blocking:
Branch state: merged Votes for changeset:

Description (last modified by andrew_b) (diff)

Since updating to mc 4.8.23 some (but not all, see below) temporary data created in /tmp/mc-username is no longer being deleted after closing mc.

This affects .rpm (cpio?) and .deb files, tar.gz/xz/bz2 do not seem to be affected though.

Example (RPM file):

  • Navigate to a directory containing rpm files.
  • Select a rpm file and press <Enter>, you will get sth. like this and /tmp/mc-username ist still empty:
    |/INFO                       │      0│31. Mai 2018 ││                            │       │             │
    │ CONTENTS.cpio              │      0│31. Mai 2018 ││                            │       │             │
    │ HEADER                     │    859│31. Mai 2018 ││                            │       │             │
    │*INSTALL                    │      0│31. Mai 2018 ││                            │       │             │
    │*REBUILD  
    

If you now select "CONTENTS.cpio" and hit <Enter> again, you will see the files inside the rpm (which as you might know are packed as a cpo archive), and inside /tmp/mc-username a respcetive file

extfs<SOME_CHARACTERS>CONTENTS.cpio

is created.

After closing mc, the file

/tmp/mc-username/extfs<SOME_CHARACTERS>CONTENTS.cpio

is no longer deleted like in older versions of mc (up to 4.8.22).

I also tested some deb-packages with similar results:

Navigate to some deb-package -> press <ENTER> -> select "CONTENTS" folder -> navigate to some file, press F3 to show contents -> /tmp/mc-username/extfs-somename is created and not deleted after closing mc.

As indicated before, version 4.8.22 deletes these temporary files after closing mc, which in my opinion should be the "correct" way of dealing with such temporary files.

Greetings,

AK

Change History

comment:1 Changed 5 years ago by andrew_b

  • Status changed from new to accepted
  • Owner set to andrew_b
  • Component changed from mc-core to mc-vfs
  • Description modified (diff)
  • Milestone changed from Future Releases to 4.8.24
Note: See TracTickets for help on using tickets.