# HG changeset patch # User ulion # Date 1199969057 0 # Node ID 61bc7acb7bb115d4aacee20dd38c6b6fef10b129 # Parent 88e81dc42cb8149521167eee327189ce53663289 Deny the code using realpath(). diff -r 88e81dc42cb8 -r 61bc7acb7bb1 libmenu/menu_filesel.c --- 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] != '/') {