summaryrefslogtreecommitdiff
path: root/libbb/full_write.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-31 15:55:56 +0000
committerDenis Vlasenko2006-10-31 15:55:56 +0000
commit3b8ff68ec874da01719af78dc46147d68d35c0ee (patch)
tree45d737179fbcb33a7daabc77022ff71268e9310b /libbb/full_write.c
parent5f18e7ca33ad11c7114369f9799e77102bc658d9 (diff)
downloadbusybox-3b8ff68ec874da01719af78dc46147d68d35c0ee.zip
busybox-3b8ff68ec874da01719af78dc46147d68d35c0ee.tar.gz
dd: fix bugs: always assumed conv=sync, died on write errors
w/o perror and statictics. Several small improvements
Diffstat (limited to 'libbb/full_write.c')
-rw-r--r--libbb/full_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/full_write.c b/libbb/full_write.c
index 563f4a8..bceac6d 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;