Skip to content

Commit 35cf94e

Browse files
rscharfegitster
authored andcommitted
refs/files-backend: remove unused open mode parameter
We only need to provide a mode if we are willing to let open(2) create the file, which is not the case here, so drop the unnecessary parameter. Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 225bc32 commit 35cf94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refs/files-backend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ static int log_ref_setup(struct files_ref_store *refs,
15691569
goto error;
15701570
}
15711571
} else {
1572-
*logfd = open(logfile, O_APPEND | O_WRONLY, 0666);
1572+
*logfd = open(logfile, O_APPEND | O_WRONLY);
15731573
if (*logfd < 0) {
15741574
if (errno == ENOENT || errno == EISDIR) {
15751575
/*

0 commit comments

Comments
 (0)