aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-06 21:11:49 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-06 21:11:49 +0100
commit0cd445f4d1ff322051ca2ad869e8757bb5ac2227 (patch)
tree1672fc0752bb1ed97a98b0c9824a9dad470a0b72 /libbb
parent6aca76d4d770bf2a0c252bc54733c2dbb269fc43 (diff)
downloadbusybox-w32-0cd445f4d1ff322051ca2ad869e8757bb5ac2227.tar.gz
busybox-w32-0cd445f4d1ff322051ca2ad869e8757bb5ac2227.tar.bz2
busybox-w32-0cd445f4d1ff322051ca2ad869e8757bb5ac2227.zip
cosmetic fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/copy_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/copy_file.c b/libbb/copy_file.c
index 6c64fab16..ed765d8f0 100644
--- a/libbb/copy_file.c
+++ b/libbb/copy_file.c
@@ -316,9 +316,9 @@ int FAST_FUNC copy_file(const char *source, const char *dest, int flags)
316#endif 316#endif
317 if (bb_copyfd_eof(src_fd, dst_fd) == -1) 317 if (bb_copyfd_eof(src_fd, dst_fd) == -1)
318 retval = -1; 318 retval = -1;
319 /* Ok, writing side I can understand... */ 319 /* Careful with writing... */
320 if (close(dst_fd) < 0) { 320 if (close(dst_fd) < 0) {
321 bb_perror_msg("can't close '%s'", dest); 321 bb_perror_msg("error writing to '%s'", dest);
322 retval = -1; 322 retval = -1;
323 } 323 }
324 /* ...but read size is already checked by bb_copyfd_eof */ 324 /* ...but read size is already checked by bb_copyfd_eof */