From ab754905b2878ba76e309963138bf47c2ae8df2a Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Wed, 12 Nov 2008 01:25:22 -0200 Subject: Add missing check for symbolic links. It was properly checking when using +, but not when using +, what would allow loading the same file with different names (but save would be done to the real file, and not overwrite the link). --- commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.c b/commands.c index 4461218..bd9b10a 100644 --- a/commands.c +++ b/commands.c @@ -1189,7 +1189,7 @@ DirWindowCB(Widget w, XtPointer user_data, XtPointer call_data) Feep(); } else { - (void)ReallyDoLoad(path, path); + (void)ReallyDoLoad(path, ResolveName(path)); SwitchDirWindow(False); XtSetKeyboardFocus(topwindow, textwindow); } -- cgit v1.2.3