Follow-up Comment #4, bug #20182 (project mc):

i finaly managed to read the code:
a)
regex_open does a lot i wont copy to a new function that should only cd. it
parses the EXT file and determines by type and action what to do about the
string.
the only clean way through it would be to introduce a new keyword in EXT (eg
'Chdir') and copy the Open directive for archives.

this still leads to the problem that if someone changes his EXT file to
contain something like
shell/sh
Chdir=evilscript %f
that script it will execute instead of doing nothing.
some users might even dislike that they must extend their ext file

b&c are solved by altering translated_mc_chdir to do the regex command in
case mc_chdir fails. then use translated_mc_chdir instead of mc_chdir in
_do_panel_cd (move code before _do_panel_cd)

please ack if you like this idea

main.c:606,1028
ext.c:416,594

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20182>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/

_______________________________________________
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel

Reply via email to