dd: fix bugs: always assumed conv=sync, died on write errors
w/o perror and statictics. Several small improvements
This commit is contained in:
@ -27,7 +27,7 @@ ssize_t full_write(int fd, const void *buf, size_t len)
|
||||
cc = safe_write(fd, buf, len);
|
||||
|
||||
if (cc < 0)
|
||||
return cc; /* write() returns -1 on failure. */
|
||||
return cc; /* write() returns -1 on failure. */
|
||||
|
||||
total += cc;
|
||||
buf = ((const char *)buf) + cc;
|
||||
|
Reference in New Issue
Block a user