From: Tobias Stoeckmann Date: Wed, 14 Jan 2026 21:26:00 +0000 (+0100) Subject: lib/commonio.c: Call utime for correct target X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cd3dcbbcc5b3babb5c3fd0c0d5b91debc06778e;p=thirdparty%2Fshadow.git lib/commonio.c: Call utime for correct target Since tmpf has been already renamed to target at this point, call utime with target instead of tmpf. Fixes: f8732b17dd1d (2026-01-14; "lib/commonio.c: Use unpredictable temporary names") Reported-by: Alejandro Colomar Signed-off-by: Tobias Stoeckmann --- diff --git a/lib/commonio.c b/lib/commonio.c index 777795661..4131a2e09 100644 --- a/lib/commonio.c +++ b/lib/commonio.c @@ -318,7 +318,7 @@ static int create_backup (const char *name, FILE * fp) ub.actime = sb.st_atime; ub.modtime = sb.st_mtime; - (void) utime(tmpf, &ub); + (void) utime(target, &ub); return 0; }