Fix RefBase debugging. O_CREAT must specify the mode.

Change-Id: I51c6df3cfd59b20ca73c3edee86bc2f74dbde1b1
This commit is contained in:
Mathias Agopian 2013-03-06 17:51:15 -08:00 committed by Alex Ray
parent ca3e2a276a
commit 769828d2d4
1 changed files with 1 additions and 1 deletions

View File

@ -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);