[Regression] Editting stale symlink removes symlink and creates file symlink points to



Hello,

Max Derzhak <max /at/linux.zp.ua> reported new regression in mcedit. If you type F4 on stale symlink and press Esc-Esc or F10 after it (no editting at all) mcedit creates empty file symlink points to and removes original symlink. This bug is more than annoing, and it was introduced after 4.5.55. Current behaviour should be changed, but resolve_symlink() is very expensive, especially over VFS, as far as new algorithm for file saving when backup is doing by copying original file to new file and then saving new edition to original filename.

Lines below are from edit/Changelog.

2002-06-24  Pavel Roskin  <proski gnu org>

        * edit.c (check_file_access): Return 1 on all errors, document
        this behavior.  Set edit->delete_file to 1 for newly created
        files.
        (edit_open_file): Don't set edit->delete_file, it's now done in
        check_file_access().
        Reported by Saso <saso bojler dhs org>

--
Regards,
Andrew V. Samoilov






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]