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

Commit c06216f8 authored by George Burgess IV's avatar George Burgess IV Committed by android-build-merger
Browse files

Merge "Add mode bits to a call to open with O_CREAT" am: 294f7312 am: 990c4c61 am: 88cd8ee2

am: 67878340

Change-Id: I0f58bd91565719e1169311e718deb232dc0d2694
parents 99043614 67878340
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ static int fs_prepare_path_impl(const char* path, mode_t mode, uid_t uid, gid_t
create:
    create_result = prepare_as_dir
        ? TEMP_FAILURE_RETRY(mkdir(path, mode))
        : TEMP_FAILURE_RETRY(open(path, O_CREAT | O_CLOEXEC | O_NOFOLLOW | O_RDONLY));
        : TEMP_FAILURE_RETRY(open(path, O_CREAT | O_CLOEXEC | O_NOFOLLOW | O_RDONLY, 0644));
    if (create_result == -1) {
        if (errno != EEXIST) {
            ALOGE("Failed to %s(%s): %s",