1
0
mirror of https://git.disroot.org/80486DX2-66/polonium.git synced 2024-12-27 07:30:23 +05:30

corrupter.c: report error ESPIPE manually

This commit is contained in:
Intel A80486DX2-66 2024-11-20 00:51:13 +03:00
parent 65042ff90b
commit bdec7db2e3
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -109,6 +109,8 @@ Corrupter_Result corrupt_file(Corrupter_Param* param) {
if (FSEEK_MACRO(file, FILE_OFFSET_C(0), SEEK_SET) != 0 ||
FTELL_MACRO(file) != 0) {
errno = ESPIPE;
PERROR_MACRO("corrupt_file");
result.error = true;
return result;
}