diff options
author | Aart Bik <ajcbik@google.com> | 2016-05-02 16:58:46 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-05-02 16:58:46 +0000 |
commit | 122504d171892cdcb398dbd59cff09b7c60efdb2 (patch) | |
tree | 91db16bef8edae976bd9feedc1260e18d9cd65f5 | |
parent | 868e599bdca3c0b25ac09acc6e8aae3226cb937b (diff) | |
parent | ca223dc3a8ad00c417aa0a6d785503639ac19f25 (diff) | |
download | android_dalvik-122504d171892cdcb398dbd59cff09b7c60efdb2.tar.gz android_dalvik-122504d171892cdcb398dbd59cff09b7c60efdb2.tar.bz2 android_dalvik-122504d171892cdcb398dbd59cff09b7c60efdb2.zip |
Fix infamous 0d0a bug on Windows by not opening file binary.
am: ca223dc3a8
* commit 'ca223dc3a8ad00c417aa0a6d785503639ac19f25':
Fix infamous 0d0a bug on Windows by not opening file binary.
Change-Id: I6c1a44fcfaccf117e0607ad278a3b4e0cd5a3c39
-rw-r--r-- | libdex/CmdUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdex/CmdUtils.cpp b/libdex/CmdUtils.cpp index cdb7bb982..8244a1189 100644 --- a/libdex/CmdUtils.cpp +++ b/libdex/CmdUtils.cpp @@ -54,7 +54,7 @@ UnzipToFileResult dexUnzipToFile(const char* zipFileName, goto bail; } - fd = open(outFileName, O_RDWR | O_CREAT | O_EXCL, 0600); + fd = open(outFileName, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600); if (fd < 0) { fprintf(stderr, "Unable to create output file '%s': %s\n", outFileName, strerror(errno)); |