From 73f51e7f784447cc4b9532276c879c3e6c1688ee Mon Sep 17 00:00:00 2001 From: ulion Date: Thu, 10 Jan 2008 12:44:17 +0000 Subject: Deny the code using realpath(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25660 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmenu/menu_filesel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmenu') diff --git a/libmenu/menu_filesel.c b/libmenu/menu_filesel.c index ba8ceae550..faca35cde5 100644 --- a/libmenu/menu_filesel.c +++ b/libmenu/menu_filesel.c @@ -427,6 +427,7 @@ static int open_fs(menu_t* menu, char* args) { getcwd(wd,PATH_MAX); if (!path || path[0] == '\0') { +#if 0 char *slash = NULL; if (filename && !strstr(filename, "://") && (path=realpath(filename, b))) { slash = strrchr(path, '/'); @@ -439,6 +440,7 @@ static int open_fs(menu_t* menu, char* args) { if (slash) slash[1] = '\0'; else +#endif path = wd; } if (path[0] != '/') { -- cgit v1.2.3