Red Hat Bugzilla – Bug 444717
trcsort doesn't remove temp directory when terminated
Last modified: 2008-06-19 14:05:48 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:18.104.22.168) Gecko/20080416 Fedora/22.214.171.124-1.fc8 Firefox/126.96.36.199
Description of problem:
The trcsort utility doesn't remove temporary directory when terminated by pressing "Ctrl+C" or executing "killall trcsort". Each termination of trcsort leaves one temporary directory in the filesystem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
<arch>: LINUXIA64, LINUXI386, LINUXPPC64, LINUXS390, LINUXS390X, LINUXX86_64
Run following steps as root:
1. cd /
3. press Ctrl+C
There is a temporary directory which name starts with "tmpsort".
There is no temporary directory which name starts with "tmpsort".
This problem has another aspect. The utility wants to create a temporary
directory in the current directory (instead of in /tmp), which means that it
refuses to run in a directory where the user has no rights to write to.
Following steps illustrate the situation:
$ cd /
Error Creating Temporary Directory "tmpsort.438".
$ echo $?
trcsort isn't intended to be a manually run program (hence why there isn't an
alias for it in /usr/bin). The commands that do run it (pvm/xpvm) are
responsible for running it in the proper directory, and if need be, cleaning up
after it (although as long as you are in a tmp directory cleaned out by
tmpwatch, even that's unnecessary).