← Commit list

2c876774a

Denys Vlasenko
Denys Vlasenko
2018-01-10
SUCCESS Duration: 143s

Subject

dd: fixed partial count logic

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/dd.c+3 -1
@@ -202,8 +202,10 @@ static bool write_and_stats(const void *buf, size_t len, size_t obs,
G.out_full++;
return 0;
}
- if (n) /* > 0 */
+ if ((size_t)n == len) {
G.out_part++;
+ return 0;
+ }
return 1;
}