summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlistair Strachan <alistair.strachan@imgtec.com>2013-07-17 19:41:49 +0200
committerDoug Zongker <dougz@android.com>2013-11-18 18:52:46 +0100
commit027429a34fd229d7546640bd5b629156da8dd0fd (patch)
tree898231a189fb42ae3b64299120e903e443d7d694
parentam 40dfc474: am c64e76c7: Merge "Enable incremental builder to find files that moved, and try to process them via patch + rename, instead of delete + add." into klp-dev (diff)
downloadandroid_bootable_recovery-027429a34fd229d7546640bd5b629156da8dd0fd.tar
android_bootable_recovery-027429a34fd229d7546640bd5b629156da8dd0fd.tar.gz
android_bootable_recovery-027429a34fd229d7546640bd5b629156da8dd0fd.tar.bz2
android_bootable_recovery-027429a34fd229d7546640bd5b629156da8dd0fd.tar.lz
android_bootable_recovery-027429a34fd229d7546640bd5b629156da8dd0fd.tar.xz
android_bootable_recovery-027429a34fd229d7546640bd5b629156da8dd0fd.tar.zst
android_bootable_recovery-027429a34fd229d7546640bd5b629156da8dd0fd.zip
Diffstat (limited to '')
-rw-r--r--install.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/install.cpp b/install.cpp
index 797a525fd..980830cc0 100644
--- a/install.cpp
+++ b/install.cpp
@@ -120,6 +120,7 @@ try_update_binary(const char *path, ZipArchive *zip, int* wipe_cache) {
pid_t pid = fork();
if (pid == 0) {
+ umask(022);
close(pipefd[0]);
execv(binary, (char* const*)args);
fprintf(stdout, "E:Can't run %s (%s)\n", binary, strerror(errno));