am 08c370cc: change /fstab.* perms back to 0644, to unbreak incremental OTAs
* commit '08c370cc50e4bdae5a59f4ddfd1e3874bb36579d': change /fstab.* perms back to 0644, to unbreak incremental OTAs
This commit is contained in:
commit
e8b2e6185c
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue