Fix RefBase debugging. O_CREAT must specify the mode.
Change-Id: I51c6df3cfd59b20ca73c3edee86bc2f74dbde1b1
This commit is contained in:
parent
438ca07b6b
commit
dbf146f1d6
|
@ -199,7 +199,7 @@ public:
|
||||||
{
|
{
|
||||||
char name[100];
|
char name[100];
|
||||||
snprintf(name, 100, "/data/%p.stack", this);
|
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) {
|
if (rc >= 0) {
|
||||||
write(rc, text.string(), text.length());
|
write(rc, text.string(), text.length());
|
||||||
close(rc);
|
close(rc);
|
||||||
|
|
Loading…
Reference in New Issue