From 46f7d54cbda931213bbe710c065e1bd82aa0af6c Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Sun, 12 Sep 2010 18:27:00 -0700 Subject: [PATCH] We also need to tell it the file mode when creating the output. Thanks to Elliott for catching this. Change-Id: Ibb89ece3dd2e1d39a8a2d51cb8b7278842e057a1 --- dexopt/OptMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0