From 769828d2d44fca3829e628bb424aa426aa468ee9 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 6 Mar 2013 17:51:15 -0800 Subject: [PATCH] Fix RefBase debugging. O_CREAT must specify the mode. Change-Id: I51c6df3cfd59b20ca73c3edee86bc2f74dbde1b1 --- libs/utils/RefBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: { 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);