From 350046ef888898374a23a9c3a6a72df1cb0d8d0b Mon Sep 17 00:00:00 2001 From: Doug Zongker Date: Thu, 3 May 2012 14:16:54 -0700 Subject: [PATCH] change /fstab.* perms back to 0644, to unbreak incremental OTAs Change-Id: I21a991148fd1de604ecf87abad0b49970d2abe84 --- include/private/android_filesystem_config.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index 68928ebe0..5b556d6ed 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -138,7 +138,7 @@ static const struct android_id_info android_ids[] = { #define android_id_count \ (sizeof(android_ids) / sizeof(android_ids[0])) - + struct fs_path_config { unsigned mode; unsigned uid; @@ -225,7 +225,7 @@ static struct fs_path_config android_files[] = { { 00750, AID_ROOT, AID_SHELL, "init*" }, { 00750, AID_ROOT, AID_SHELL, "charger*" }, { 00750, AID_ROOT, AID_SHELL, "sbin/fs_mgr" }, - { 00640, AID_ROOT, AID_SHELL, "fstab.*" }, + { 00644, AID_ROOT, AID_SHELL, "fstab.*" }, { 00644, AID_ROOT, AID_ROOT, 0 }, }; @@ -234,7 +234,7 @@ static inline void fs_config(const char *path, int dir, { struct fs_path_config *pc; int plen; - + pc = dir ? android_dirs : android_files; plen = strlen(path); for(; pc->prefix; pc++){ @@ -254,9 +254,9 @@ static inline void fs_config(const char *path, int dir, *uid = pc->uid; *gid = pc->gid; *mode = (*mode & (~07777)) | pc->mode; - + #if 0 - fprintf(stderr,"< '%s' '%s' %d %d %o >\n", + fprintf(stderr,"< '%s' '%s' %d %d %o >\n", path, pc->prefix ? pc->prefix : "", *uid, *gid, *mode); #endif }