]> git.ipfire.org Git - thirdparty/coreutils.git/commit
touch: fix aliasing bug
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 Jul 2022 16:59:38 +0000 (09:59 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 27 Jul 2022 17:04:49 +0000 (10:04 -0700)
commitafffa445b968d2fa4397bcf1e93f3dde28689526
treed621032a003370808a09471a25da86e8b0928d0d
parent187712b97b04f3ee6c2137f5b045970d76bb01f0
touch: fix aliasing bug

Problem reported by Tim Lange in:
https://lists.gnu.org/r/coreutils/2022-07/msg00008.html
* src/touch.c (date_relative): Rename from get_reldate,
and use a functional style to fix the aliasing bug.
src/touch.c