summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-12 01:25:22 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-12 01:25:22 -0200
commitab754905b2878ba76e309963138bf47c2ae8df2a (patch)
tree0fa1b6216b40341bd1e9ff437e5df87d361ffd69 /commands.c
parentcfc78a1c2452362a5e7c88ed239c9d7ef0240a4d (diff)
Add missing check for symbolic links.
It was properly checking when using <tab-completion>+<enter>, but not when using <tab-completion>+<click-on-filename>, what would allow loading the same file with different names (but save would be done to the real file, and not overwrite the link).
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
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);
}