diff options
| author | 2013-03-06 17:51:15 -0800 | |
|---|---|---|
| committer | 2013-03-06 17:52:34 -0800 | |
| commit | dbf146f1d69be31d12fc1c16b71beb9f4f2fb2a8 (patch) | |
| tree | aa8bb180ac7490e315fddb0fe3936e4b9c115b7f /libs/utils | |
| parent | 438ca07b6ba74235e87bfbd78c94874d8bbde391 (diff) | |
Fix RefBase debugging. O_CREAT must specify the mode.
Change-Id: I51c6df3cfd59b20ca73c3edee86bc2f74dbde1b1
Diffstat (limited to 'libs/utils')
| -rw-r--r-- | libs/utils/RefBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/utils/RefBase.cpp b/libs/utils/RefBase.cpp index e80a795b79..2b39bce2e8 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); |