[MPlayer-cvslog] r25660 - trunk/libmenu/menu_filesel.c

ulion subversion at mplayerhq.hu
Thu Jan 10 13:44:17 CET 2008


Author: ulion
Date: Thu Jan 10 13:44:17 2008
New Revision: 25660

Log:
Deny the code using realpath().


Modified:
   trunk/libmenu/menu_filesel.c

Modified: trunk/libmenu/menu_filesel.c
==============================================================================
--- trunk/libmenu/menu_filesel.c	(original)
+++ trunk/libmenu/menu_filesel.c	Thu Jan 10 13:44:17 2008
@@ -427,6 +427,7 @@ static int open_fs(menu_t* menu, char* a
   
   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* a
     if (slash)
       slash[1] = '\0';
     else
+#endif
       path = wd;
   }
   if (path[0] != '/') {



More information about the MPlayer-cvslog mailing list