Merge "Fix mode."
This commit is contained in:
committed by
Android (Google) Code Review
commit
04f32bdfd2
@@ -64,7 +64,8 @@ static void dumpKernelStacks(JNIEnv* env, jobject clazz, jstring pathStr) {
|
||||
|
||||
const char *path = env->GetStringUTFChars(pathStr, NULL);
|
||||
|
||||
int outFd = open(path, O_WRONLY | O_APPEND | O_CREAT, S_IWUSR);
|
||||
int outFd = open(path, O_WRONLY | O_APPEND | O_CREAT,
|
||||
S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH);
|
||||
if (outFd < 0) {
|
||||
LOGE("Unable to open stack dump file: %d (%s)", errno, strerror(errno));
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user