diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-31 15:55:56 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-31 15:55:56 +0000 |
commit | 861773fd9a4ba0a118bea39db8413d209665ce53 (patch) | |
tree | 45d737179fbcb33a7daabc77022ff71268e9310b /libbb | |
parent | 73762202396d6080aa071ff70f5afb735f18816a (diff) | |
download | busybox-w32-861773fd9a4ba0a118bea39db8413d209665ce53.tar.gz busybox-w32-861773fd9a4ba0a118bea39db8413d209665ce53.tar.bz2 busybox-w32-861773fd9a4ba0a118bea39db8413d209665ce53.zip |
dd: fix bugs: always assumed conv=sync, died on write errors
w/o perror and statictics. Several small improvements
git-svn-id: svn://busybox.net/trunk/busybox@16476 69ca8d6d-28ef-0310-b511-8ec308f3f277
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) | |||
27 | cc = safe_write(fd, buf, len); | 27 | cc = safe_write(fd, buf, len); |
28 | 28 | ||
29 | if (cc < 0) | 29 | if (cc < 0) |
30 | return cc; /* write() returns -1 on failure. */ | 30 | return cc; /* write() returns -1 on failure. */ |
31 | 31 | ||
32 | total += cc; | 32 | total += cc; |
33 | buf = ((const char *)buf) + cc; | 33 | buf = ((const char *)buf) + cc; |