Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[pathmapping] Don't resolve empty path in sbox_map_path_at(). JB#44353
  • Loading branch information
Thaodan committed Feb 5, 2021
1 parent 7e1c93f commit cc58880
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scratchbox2/pathmapping/pathmapping_interf.c
Expand Up @@ -249,6 +249,9 @@ void sbox_map_path_at(
res->mres_readonly = 1;
return;
}
if (*virtual_path == '\0') {
goto end;
}

if ((*virtual_path == '/')
#ifdef AT_FDCWD
Expand Down Expand Up @@ -287,6 +290,7 @@ void sbox_map_path_at(
return;
}

end:
/* name not found. Can't do much here, log a warning and return
* the original relative path. That will work if we are lucky, but
* not always.. */
Expand Down

0 comments on commit cc58880

Please sign in to comment.