Loading minzip/Zip.c +1 −1 Original line number Diff line number Diff line Loading @@ -968,7 +968,7 @@ bool mzExtractRecursive(const ZipArchive *pArchive, setfscreatecon(secontext); } int fd = open(targetFile, O_CREAT|O_WRONLY|O_TRUNC|O_SYNC, int fd = open(targetFile, O_CREAT|O_WRONLY|O_TRUNC, UNZIP_FILEMODE); if (secontext) { Loading updater/install.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -559,7 +559,7 @@ Value* PackageExtractFileFn(const char* name, State* state, } { int fd = TEMP_FAILURE_RETRY(ota_open(dest_path, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, int fd = TEMP_FAILURE_RETRY(ota_open(dest_path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)); if (fd == -1) { printf("%s: can't open %s for write: %s\n", name, dest_path, strerror(errno)); Loading Loading
minzip/Zip.c +1 −1 Original line number Diff line number Diff line Loading @@ -968,7 +968,7 @@ bool mzExtractRecursive(const ZipArchive *pArchive, setfscreatecon(secontext); } int fd = open(targetFile, O_CREAT|O_WRONLY|O_TRUNC|O_SYNC, int fd = open(targetFile, O_CREAT|O_WRONLY|O_TRUNC, UNZIP_FILEMODE); if (secontext) { Loading
updater/install.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -559,7 +559,7 @@ Value* PackageExtractFileFn(const char* name, State* state, } { int fd = TEMP_FAILURE_RETRY(ota_open(dest_path, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, int fd = TEMP_FAILURE_RETRY(ota_open(dest_path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)); if (fd == -1) { printf("%s: can't open %s for write: %s\n", name, dest_path, strerror(errno)); Loading