diff options
| author | NRK <nrk@disroot.org> | 2026-04-05 21:28:31 +0000 |
|---|---|---|
| committer | navi <117868723+navi-desu@users.noreply.github.com> | 2026-04-05 23:37:18 +0200 |
| commit | e5dd540e2febf60844aee271a304ab25f1f8c1a8 (patch) | |
| tree | 493272abb00146409aa55fa6c232876b8ab9f7ff | |
| parent | c2e52472a72750074a324fbe16a30e1bcc4fbbd4 (diff) | |
shared: fix fcntl argument orderorigin/masterorigin/HEAD
how this managed to survive my tests is beyond me...
fixes: b6db87756c9ae6338bd58c02bdca941adf6db97d
| -rw-r--r-- | src/shared/helpers.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/helpers.h b/src/shared/helpers.h index ba95b916..cf9ee2b5 100644 --- a/src/shared/helpers.h +++ b/src/shared/helpers.h @@ -288,7 +288,7 @@ RC_UNUSED static char *env_findvar(const char *name, char **envp) RC_UNUSED static int xopen_nonblock(const char *filename, int flags, mode_t mode) { int fd = open(filename, flags | O_NONBLOCK, mode); - if (fd >= 0 && fcntl(F_SETFL, fd, flags & ~O_NONBLOCK) < 0) { + if (fd >= 0 && fcntl(fd, F_SETFL, flags & ~O_NONBLOCK) < 0) { int saved_errno = errno; close(fd); fd = -1; |
