[PATCH] concat_dir_and_file() needs fixes

Leonard den Ottolander leonard at den.ottolander.nl
Fri Dec 2 22:03:44 UTC 2005


Hi Jindrich,

On Fri, 2005-12-02 at 19:11 +0100, Jindrich Novy wrote:
> I thought that it would be less PITA to make concat_dir_and_file less
> stupid than fixing the strings in edit.h:

As Roland points out one should not concatenate 2 absolute paths.

> /* File names */
> #define EDIT_DIR           PATH_SEP_STR ".mc" PATH_SEP_STR "cedit"

So indeed the correct fix is to remove PATH_SEP_STR from the front of
this string. EDIT_DIR is a relative path, not absolute.

Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research





More information about the mc-devel mailing list