changeset 25632:61bc7acb7bb1

Deny the code using realpath().
author ulion
date Thu, 10 Jan 2008 12:44:17 +0000
parents 88e81dc42cb8
children 7ab58f012dd3
files libmenu/menu_filesel.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu_filesel.c	Wed Jan 09 16:20:42 2008 +0000
+++ b/libmenu/menu_filesel.c	Thu Jan 10 12:44:17 2008 +0000
@@ -427,6 +427,7 @@
   
   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 @@
     if (slash)
       slash[1] = '\0';
     else
+#endif
       path = wd;
   }
   if (path[0] != '/') {