summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2021-09-09 23:45:51 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-09-09 17:40:28 -0700
commit35cf94eaf6c8bdbed86549c2349aa3c3b40b7b09 (patch)
tree5d25dd13d22c217932297de33c73c0f1c54d5d1c /refs
parentGit 2.33 (diff)
downloadtgif-35cf94eaf6c8bdbed86549c2349aa3c3b40b7b09.tar.xz
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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-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) {
/*