Merge "Fix mode."

This commit is contained in:
Marco Nelissen
2011-05-09 14:49:36 -07:00
committed by Android (Google) Code Review

View File

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