summaryrefslogtreecommitdiffstats
path: root/libs/utils
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-03-06 17:51:15 -0800
committerMathias Agopian <mathias@google.com>2013-03-06 17:52:34 -0800
commitdbf146f1d69be31d12fc1c16b71beb9f4f2fb2a8 (patch)
treeaa8bb180ac7490e315fddb0fe3936e4b9c115b7f /libs/utils
parent438ca07b6ba74235e87bfbd78c94874d8bbde391 (diff)
downloadframeworks_native-dbf146f1d69be31d12fc1c16b71beb9f4f2fb2a8.zip
frameworks_native-dbf146f1d69be31d12fc1c16b71beb9f4f2fb2a8.tar.gz
frameworks_native-dbf146f1d69be31d12fc1c16b71beb9f4f2fb2a8.tar.bz2
Fix RefBase debugging. O_CREAT must specify the mode.
Change-Id: I51c6df3cfd59b20ca73c3edee86bc2f74dbde1b1
Diffstat (limited to 'libs/utils')
-rw-r--r--libs/utils/RefBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/utils/RefBase.cpp b/libs/utils/RefBase.cpp
index e80a795..2b39bce 100644
--- a/libs/utils/RefBase.cpp
+++ b/libs/utils/RefBase.cpp
@@ -199,7 +199,7 @@ public:
{
char name[100];
snprintf(name, 100, "/data/%p.stack", this);
- int rc = open(name, O_RDWR | O_CREAT | O_APPEND);
+ int rc = open(name, O_RDWR | O_CREAT | O_APPEND, 644);
if (rc >= 0) {
write(rc, text.string(), text.length());
close(rc);