summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Agopian2013-03-06 19:51:15 -0600
committerAlex Ray2013-07-30 15:57:00 -0500
commit769828d2d44fca3829e628bb424aa426aa468ee9 (patch)
treec3f5773e46734cb471575de9986476a50ac212e1 /libs/utils/RefBase.cpp
parentca3e2a276afa03cfffb2b989e28adfc44ec50d6f (diff)
downloadplatform-system-core-769828d2d44fca3829e628bb424aa426aa468ee9.tar.gz
platform-system-core-769828d2d44fca3829e628bb424aa426aa468ee9.tar.xz
platform-system-core-769828d2d44fca3829e628bb424aa426aa468ee9.zip
Fix RefBase debugging. O_CREAT must specify the mode.
Change-Id: I51c6df3cfd59b20ca73c3edee86bc2f74dbde1b1
Diffstat (limited to 'libs/utils/RefBase.cpp')
-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 e80a795b7..2b39bce2e 100644
--- a/libs/utils/RefBase.cpp
+++ b/libs/utils/RefBase.cpp
@@ -199,7 +199,7 @@ public:
199 { 199 {
200 char name[100]; 200 char name[100];
201 snprintf(name, 100, "/data/%p.stack", this); 201 snprintf(name, 100, "/data/%p.stack", this);
202 int rc = open(name, O_RDWR | O_CREAT | O_APPEND); 202 int rc = open(name, O_RDWR | O_CREAT | O_APPEND, 644);
203 if (rc >= 0) { 203 if (rc >= 0) {
204 write(rc, text.string(), text.length()); 204 write(rc, text.string(), text.length());
205 close(rc); 205 close(rc);