summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-12-28 09:47:48 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-28 09:47:48 -0800
commit8b9e9804f10102de80a14a01f9de5e23b2856b1d (patch)
tree48da6e096a35b530a5ef55bb17ae414be1780485 /include
parent17e9033f3339d252aa048f830f00515d94c41fe2 (diff)
parent4600545fbb5b496297a51e43818b8b3e750590c5 (diff)
downloadsystem_core-8b9e9804f10102de80a14a01f9de5e23b2856b1d.zip
system_core-8b9e9804f10102de80a14a01f9de5e23b2856b1d.tar.gz
system_core-8b9e9804f10102de80a14a01f9de5e23b2856b1d.tar.bz2
am 4600545f: am b8e86c5a: Merge "android_filesystem_config: allow absolute paths"
* commit '4600545fbb5b496297a51e43818b8b3e750590c5': android_filesystem_config: allow absolute paths
Diffstat (limited to 'include')
-rw-r--r--include/private/android_filesystem_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h
index 3a2500e..f90af81 100644
--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -236,6 +236,10 @@ static inline void fs_config(const char *path, int dir,
struct fs_path_config *pc;
int plen;
+ if (path[0] == '/') {
+ path++;
+ }
+
pc = dir ? android_dirs : android_files;
plen = strlen(path);
for(; pc->prefix; pc++){