summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-10-12 13:51:46 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-10-12 13:51:46 -0700
commitd64b99d35b971248da5f55d03465813345b5dbef (patch)
tree3d5d682eb0d28c51bb95a33700340f0a301fbf0c
parentMerge branch 'tb/pack-finalize-ordering' into maint (diff)
parentrefs/files-backend: remove unused open mode parameter (diff)
downloadtgif-d64b99d35b971248da5f55d03465813345b5dbef.tar.xz
Merge branch 'rs/no-mode-to-open-when-appending' into maint
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
-rw-r--r--refs/files-backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 677b7e4cdd..74c0385873 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1569,7 +1569,7 @@ static int log_ref_setup(struct files_ref_store *refs,
goto error;
}
} else {
- *logfd = open(logfile, O_APPEND | O_WRONLY, 0666);
+ *logfd = open(logfile, O_APPEND | O_WRONLY);
if (*logfd < 0) {
if (errno == ENOENT || errno == EISDIR) {
/*