Fix --set-mtime-command.

This fixes a bug introduced by 281e03ec6.

* src/system.c (sys_exec_setmtime_script): Increase buflen by
value of nread.
This commit is contained in:
Sergey Poznyakoff
2026-07-25 17:10:11 +03:00
parent 19a3a73e8c
commit e407e6e7dd
+1 -1
View File
@@ -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;