[Bug debugedit/33096] maybe debugedit should preserve object file mtime/etc.
mark at klomp dot org
sourceware-bugzilla@sourceware.org
Thu Jul 3 15:24:45 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33096
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
commit 7ddd1b072ff31acb032c4f660e3a462c69365a00
Author: Mark Wielaard <mark@klomp.org>
Date: Thu Jun 19 15:05:01 2025 +0200
debugedit: Add -p, --preserve-dates
When --preserve-dates is given to debugedit it will take the original
st_atim and st_mtim and put them back using utimensat after processing
the file (and setting back the original st_mode).
* tools/debugedit.c (preserve_dates): New bool.
(optionsTable): Add preserve-dates.
(optionsChars): Add p.
(helpText): Add -p|--preserve-dates.
(main): Handle 'p'. Use utimensat if preserve_dates true.
* tests/debugedit.at: Add new debugedit preserve timestamps test.
https://sourceware.org/bugzilla/show_bug.cgi?id=33096
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Debugedit
mailing list