diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-31 18:55:56 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-31 18:55:56 +0300 |
commit | 3b8ff68ec874da01719af78dc46147d68d35c0ee (patch) | |
tree | 45d737179fbcb33a7daabc77022ff71268e9310b /libbb | |
parent | 5f18e7ca33ad11c7114369f9799e77102bc658d9 (diff) |
dd: fix bugs: always assumed conv=sync, died on write errors
w/o perror and statictics. Several small improvements
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/full_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/full_write.c b/libbb/full_write.c index 563f4a851..bceac6de5 100644 --- a/libbb/full_write.c +++ b/libbb/full_write.c @@ -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; |