diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-12 13:51:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-12 13:51:46 -0700 |
commit | d64b99d35b971248da5f55d03465813345b5dbef (patch) | |
tree | 3d5d682eb0d28c51bb95a33700340f0a301fbf0c | |
parent | Merge branch 'tb/pack-finalize-ordering' into maint (diff) | |
parent | refs/files-backend: remove unused open mode parameter (diff) | |
download | tgif-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.c | 2 |
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) { /* |