0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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

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