am b8e86c5a: Merge "android_filesystem_config: allow absolute paths"
* commit 'b8e86c5aba4d160d1d356883a6a9a85056c5fa47': android_filesystem_config: allow absolute paths
This commit is contained in:
commit
4600545fbb
1 changed files with 4 additions and 0 deletions
|
|
@ -236,6 +236,10 @@ static inline void fs_config(const char *path, int dir,
|
||||||
struct fs_path_config *pc;
|
struct fs_path_config *pc;
|
||||||
int plen;
|
int plen;
|
||||||
|
|
||||||
|
if (path[0] == '/') {
|
||||||
|
path++;
|
||||||
|
}
|
||||||
|
|
||||||
pc = dir ? android_dirs : android_files;
|
pc = dir ? android_dirs : android_files;
|
||||||
plen = strlen(path);
|
plen = strlen(path);
|
||||||
for(; pc->prefix; pc++){
|
for(; pc->prefix; pc++){
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue