[bug #13091] Open a symlink to edit when save, erase symlink and make a new file.
Update of bug #13091 (project mc): Status:None = Need Info ___ Follow-up Comment #2: ? Could you provide a little more info (platform, example)? $ mcedit foo $ ln -s foo bar $ mcedit bar just edits foo for me (also tried this with 4.6.0). Or am I missing your point? ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=13091 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #13091] Open a symlink to edit when save, erase symlink and make a new file.
URL: http://savannah.gnu.org/bugs/?func=detailitemitem_id=13091 Summary: Open a symlink to edit when save, erase symlink and make a new file. Project: GNU Midnight Commander Submitted by: None Submitted on: Sun 05/15/2005 at 22:19 Category: Editor Severity: 3 - Normal Status: Need Info Privacy: Public Assigned to: None Open/Closed: Open Release: 4.6.0 Platform Version: GNU/Linux ___ Details: Open a file by symlink to edit, when close to save changes, MC erase symlink and make a new file. (Erase the symlink) ___ Follow-up Comments: --- Date: Mon 05/16/2005 at 14:59 By: Leonard den Ottolander leonardjo ? Could you provide a little more info (platform, example)? $ mcedit foo $ ln -s foo bar $ mcedit bar just edits foo for me (also tried this with 4.6.0). Or am I missing your point? --- Date: Sun 05/15/2005 at 22:41 By: wwp wwp I do my best to avoid this behaviour in mc for years :-\ (now w/ 4.6.1-pre4a). I hope it's not by design that mc replaces an edited symlink w/ the target file when saving/editing it! ___ Carbon-Copy List: CC Address | Comment +- leonardjo | ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=13091 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #13091] Open a symlink to edit when save, erase symlink and make a new file.
Follow-up Comment #3, bug #13091 (project mc): GNU/Linux x86, FC3 running mc 4.6.1-pre4 from the sources (was: SuSE 8.x, mc 4.6.x from the sources and older mc versions): $ rm -f foo bar; touch foo; ln -s foo bar; ls -l foo bar lrwxrwxrwx 1 wwp users 3 May 16 17:08 bar - foo -rw-r--r-- 1 wwp users 0 May 16 17:08 foo $ mcedit bar (press F2 then F10) $ ls -l foo bar 0 -rw-r--r-- 1 wwp users 0 May 16 17:09 bar 0 -rw-r--r-- 1 wwp users 0 May 16 17:08 foo as you see, bar is no longer a symlink but a regular file. ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=13091 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #13091] Open a symlink to edit when save, erase symlink and make a new file.
Follow-up Comment #4, bug #13091 (project mc): Weird. I cannot reproduce this on FC1 with MC_4_6_1_PRE from a couple of days ago. Where did you get this pre4 so I can compare? Can you reproduce this with mc-4.6.1-0.14.FC3 (pre3 with patches) or latest MC_4_6_1_PRE? Is it reproducible for non 0 byte files? Could this be a kernel issue? ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=13091 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #13091] Open a symlink to edit when save, erase symlink and make a new file.
Follow-up Comment #5, bug #13091 (project mc): F9 - options - save mode - switch to quick save and everything is fine ... it might be worth consideration, though, to make the safe save and do backups modes follow symlinks. ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=13091 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #13091] Open a symlink to edit when save, erase symlink and make a new file.
Follow-up Comment #6, bug #13091 (project mc): Weird. I cannot reproduce this on FC1 with MC_4_6_1_PRE from a couple of days ago. Where did you get this pre4 so I can compare? I cannot remember, official places to find mc tarballs are still obscure to me. But IIRC it was from a official location as well as previous mc version I've been using. Can you reproduce this with mc-4.6.1-0.14.FC3 (pre3 with patches) or latest MC_4_6_1_PRE? I reproduce it at least w/ mc-4.6.1a-0.8 (FC3 rpm). Let me know if other tests are necessary (just seen Oswald's post, BTW it's right that Safe save was set in my settings). Is it reproducible for non 0 byte files? Yes it is. Could this be a kernel issue? I would say no, since I face this behaviour for years (kernels 2.4.x, up to 2.6.11). ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=13091 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
[bug #13091] Open a symlink to edit when save, erase symlink and make a new file.
Follow-up Comment #1, bug #13091 (project mc): I do my best to avoid this behaviour in mc for years :-\ (now w/ 4.6.1-pre4a). I hope it's not by design that mc replaces an edited symlink w/ the target file when saving/editing it! ___ Reply to this item at: http://savannah.gnu.org/bugs/?func=detailitemitem_id=13091 ___ Message sent via/by Savannah http://savannah.gnu.org/ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel