Skip to content

fix: preserve mtime when setting Path.atime#250

Open
santhreal wants to merge 1 commit into
jaraco:mainfrom
santhreal:fix/set-atime-preserve-mtime
Open

fix: preserve mtime when setting Path.atime#250
santhreal wants to merge 1 commit into
jaraco:mainfrom
santhreal:fix/set-atime-preserve-mtime

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

Path.set_atime hits logic:mtime-clobber when set_atime reads st_atime_ns for mtime preserve. This PR fixes the regression with a focused test covering the case.

set_atime passed st_atime_ns as the mtime slot to utime, so setting
atime clobbered mtime with the previous atime instead of keeping it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant