[Pkg-mc-devel] Bug#673252: mcedit tries to create a temporary file in the wrong directory

Göran Weinholt goran at weinholt.se
Mon Jul 16 15:04:17 UTC 2012


Hello,

I also noticed that mcedit can't save files anymore when "Edit Save
Mode" is set to "Safe save".

strace shows that mc tries to create a temporary file with the initial /
missing from the filename. When trying to safe save /var/tmp/new-file:

...
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
open("/var/tmp/new-file", O_RDONLY)     = 4
close(4)                                = 0
open("var/tmp/cooleditr4mLML", O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600) = -1 ENOENT (No such file or directory)
open("var/tmp/cooleditS5oLML", O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600) = -1 ENOENT (No such file or directory)
open("var/tmp/cooleditj7qLML", O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600) = -1 ENOENT (No such file or directory)
...

Regards,

-- 
Göran Weinholt <goran at weinholt.se>
"Beware of 'the real world'. A speaker's appeal to it is always 
an invitation not to challenge his tacit assumptions."
  -- Edsger W. Dijkstra



More information about the Pkg-mc-devel mailing list