diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-09-20 15:20:45 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-09-20 15:20:45 -0700 |
| commit | 2a6d0b2b6879f01bd4e0f9f41ce8f6d7990c61a5 (patch) | |
| tree | f64dfff8098aec32507c3e13f1afb09168213b47 | |
| parent | 10a08cbd397644f205a1212409896928988c2c83 (diff) | |
| parent | 35cf94eaf6c8bdbed86549c2349aa3c3b40b7b09 (diff) | |
| download | git-2a6d0b2b6879f01bd4e0f9f41ce8f6d7990c61a5.tar.gz | |
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
| -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) { /* |
