diff options
author | Luis Hector Chavez <lhchavez@google.com> | 2018-02-27 16:30:37 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-02-27 16:30:37 +0000 |
commit | 4c64a6a0262b74704a8a3bff3868b41801e9f3b0 (patch) | |
tree | 7645b3ab683091b8cfc123a5b75e34aac49f5aa1 | |
parent | 47f758240555c3b8ab0285b757229530cc41ae29 (diff) | |
parent | 1cdde05cc0eaa50b8bdc2377a12b49412a5c52a9 (diff) | |
download | squashfs-tools-4c64a6a0262b74704a8a3bff3868b41801e9f3b0.tar.gz |
Reland "mksquashfs: Run android_fs_config() on the root inode"
am: 1cdde05cc0
Change-Id: I720fe8f82a172f44a5526e1a57860cd370c666bd
-rw-r--r-- | squashfs-tools/mksquashfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c index 60be156..5ac11ad 100644 --- a/squashfs-tools/mksquashfs.c +++ b/squashfs-tools/mksquashfs.c @@ -3282,7 +3282,7 @@ void dir_scan(squashfs_inode *inode, char *pathname, pathname, strerror(errno)); /* ANDROID CHANGES START*/ #ifdef ANDROID - buf.st_mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH; // root mode + buf.st_mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH | S_IFDIR; // root mode buf.st_uid = 0; buf.st_gid = 0; buf.st_mtime = time(NULL); @@ -3296,6 +3296,9 @@ void dir_scan(squashfs_inode *inode, char *pathname, /* ANDROID CHANGES START*/ #ifdef ANDROID dir_ent->capabilities = caps; + if (android_config) { + android_fs_config(fs_config_func, "", &dir_ent->inode->buf, target_out_path, &dir_ent->capabilities); + } #endif /* ANDROID CHANGES END */ |