From: Sergey Poznyakoff Date: Sat, 25 Jul 2026 14:10:11 +0000 (+0300) Subject: Fix --set-mtime-command. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e407e6e7ddf61b84d5a0fabb2546a1efd96a512c;p=thirdparty%2Ftar.git Fix --set-mtime-command. This fixes a bug introduced by 281e03ec6. * src/system.c (sys_exec_setmtime_script): Increase buflen by value of nread. --- diff --git a/src/system.c b/src/system.c index 0fcc499a..bc98f2da 100644 --- a/src/system.c +++ b/src/system.c @@ -993,7 +993,7 @@ sys_exec_setmtime_script (const char *script_name, } if (nread == 0) break; - buflen += n; + buflen += nread; } else if (pfd.revents & POLLHUP) break;