]> git.ipfire.org Git - thirdparty/rsync.git/commit
Fix --open-noatime option not working on files
authorKrzysztof Płocharz <krzysztof@plocharz.info>
Mon, 27 Jan 2025 16:20:47 +0000 (17:20 +0100)
committerAndrew Tridgell <andrew@tridgell.net>
Sat, 23 Aug 2025 07:13:09 +0000 (17:13 +1000)
commit992e10efaf42d9ec3dd43431350accf1becc1d00
tree3cee8d19fccd991720912af252e187106822140b
parent1c5ebdc4e50863f81841be162d891ec0f6d7d0b7
Fix --open-noatime option not working on files

atime of source files could sometimes be overwritten
even though --open-noatime option was used.

To fix that, optional O_NOATIME flag was added
to do_open_nofollow which is also used to open regular
files since fix:
  "fixed symlink race condition in sender"
Previously optional O_NOATIME flag was only in do_open.
syscall.c
testsuite/open-noatime.test [new file with mode: 0644]