Skip to content

Commit 2a6d0b2

Browse files
committed
Merge branch 'rs/no-mode-to-open-when-appending'
The "mode" word is useless in a call to open(2) that does not create a new file. Such a call in the files backend of the ref subsystem has been cleaned up. * rs/no-mode-to-open-when-appending: refs/files-backend: remove unused open mode parameter
2 parents 10a08cb + 35cf94e commit 2a6d0b2

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)