Deny the code using realpath().

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25660 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2008-01-10 12:44:17 +00:00
parent 2bfb6a2436
commit 73f51e7f78
1 changed files with 2 additions and 0 deletions

View File

@ -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] != '/') {