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);
|
getcwd(wd,PATH_MAX);
|
||||||
if (!path || path[0] == '\0') {
|
if (!path || path[0] == '\0') {
|
||||||
|
#if 0
|
||||||
char *slash = NULL;
|
char *slash = NULL;
|
||||||
if (filename && !strstr(filename, "://") && (path=realpath(filename, b))) {
|
if (filename && !strstr(filename, "://") && (path=realpath(filename, b))) {
|
||||||
slash = strrchr(path, '/');
|
slash = strrchr(path, '/');
|
||||||
|
@ -439,6 +440,7 @@ static int open_fs(menu_t* menu, char* args) {
|
||||||
if (slash)
|
if (slash)
|
||||||
slash[1] = '\0';
|
slash[1] = '\0';
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
path = wd;
|
path = wd;
|
||||||
}
|
}
|
||||||
if (path[0] != '/') {
|
if (path[0] != '/') {
|
||||||
|
|
Loading…
Reference in New Issue