Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19399f4e authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix mode.

Change-Id: I94813a4a73ea3a7b11e0747fda479be87e697072
parent d8689137
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;