mirror of https://github.com/mpv-player/mpv
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:
parent
2bfb6a2436
commit
73f51e7f78
|
@ -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] != '/') {
|
||||
|
|
Loading…
Reference in New Issue