Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3f4a3ba authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "zip_archive.cc: add O_CLOEXEC"

am: 958a669e

Change-Id: I25fe481e753ae5419e79fd9e184635f9513815b1
parents 4c558686 958a669e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -491,7 +491,7 @@ int32_t OpenArchiveFd(int fd, const char* debug_file_name, ZipArchiveHandle* han
}

int32_t OpenArchive(const char* fileName, ZipArchiveHandle* handle) {
  const int fd = ::android::base::utf8::open(fileName, O_RDONLY | O_BINARY, 0);
  const int fd = ::android::base::utf8::open(fileName, O_RDONLY | O_BINARY | O_CLOEXEC, 0);
  ZipArchive* archive = new ZipArchive(fd, true);
  *handle = archive;