1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

Fix wpa_supplicant search when path did not exists

This commit is contained in:
albfan 2016-08-26 06:29:34 +02:00
parent 28252707a2
commit 36be37ed8b

View file

@ -2427,7 +2427,7 @@ static int supplicant_find(char **binary)
return log_ENOMEM();
if(stat(bin, &bin_stat) < 0) {
if(ENOENT == errno) {
if(ENOENT == errno || ENOTDIR == errno) {
goto end;
}
return log_ERRNO();