osdep: remove confstr() fallback for subprocess spawning

It doesn't exist on bionic (Android) and accurately emulating
execvpe's behaviour isn't all that important.
This commit is contained in:
sfan5 2020-05-24 22:44:56 +02:00 committed by Jan Ekström
parent 4d5688dc9a
commit bf6afbc299
1 changed files with 2 additions and 7 deletions

View File

@ -150,13 +150,8 @@ void mp_subprocess2(struct mp_subprocess_opts *opts,
bool killed_by_us = false;
int cancel_fd = -1;
char *path = getenv("PATH");
char path_storage[PATH_MAX];
if (!path) {
path = path_storage;
size_t r = confstr(_CS_PATH, path, sizeof(path_storage));
if (r == 0 || r >= sizeof(path_storage))
path[0] = '\0'; // failure, who cares
}
if (!path)
path = ""; // failure, who cares
*res = (struct mp_subprocess_result){0};