From: Dan Bornstein Date: Mon, 13 Sep 2010 01:27:00 +0000 (-0700) Subject: We also need to tell it the file mode when creating the output. X-Git-Tag: android-x86-4.0-r1~164^2~18^2~40 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=46f7d54cbda931213bbe710c065e1bd82aa0af6c;p=android-x86%2Fdalvik.git We also need to tell it the file mode when creating the output. Thanks to Elliott for catching this. Change-Id: Ibb89ece3dd2e1d39a8a2d51cb8b7278842e057a1 --- diff --git a/dexopt/OptMain.c b/dexopt/OptMain.c index cde3d18e4..ca55565e8 100644 --- a/dexopt/OptMain.c +++ b/dexopt/OptMain.c @@ -346,7 +346,7 @@ static int preopt(int argc, char* const argv[]) goto bail; } - outFd = open(outName, O_RDWR | O_EXCL | O_CREAT); + outFd = open(outName, O_RDWR | O_EXCL | O_CREAT, 0666); if (outFd < 0) { perror(argv[0]); goto bail;