Ticket #2012 (closed defect: fixed)

Opened 14 years ago

Last modified 13 years ago

'External formater' touches /dev/null

Reported by: mcu Owned by:
Priority: major Milestone: 4.7
Component: mcedit Version: 4.7.0.1
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

When editing as root new (not saved) file, and invoking 'External formatter' menu entry, then /dev/null is replaced by ordinary file (probably not writable by others).
This is old bug, but i never do that as ordinary user, so i couldn't find out what theft or daemon takes important device file and leaves trash...

Change History

comment:1 Changed 14 years ago by mcu

I tested also ispell menu entry on non saved file - it segfaults and leaves /dev/null.new

src/editor/editcmd.c:2264
tmp = g_strconcat (" ", home_dir, PATH_SEP_STR EDIT_DIR, shell_cmd, " ", quoted_name,

" ", home_dir, PATH_SEP_STR EDIT_BLOCK_FILE " /dev/null", (char *) NULL);

i guess, that redirection is missing...

comment:2 Changed 13 years ago by angel_il

  • Status changed from new to closed
  • Resolution set to fixed

this trouble will be fided in #323

Note: See TracTickets for help on using tickets.