cosmetic fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-02-06 21:11:49 +01:00
parent 6aca76d4d7
commit 0cd445f4d1
2 changed files with 8 additions and 7 deletions

View File

@@ -316,9 +316,9 @@ int FAST_FUNC copy_file(const char *source, const char *dest, int flags)
#endif
if (bb_copyfd_eof(src_fd, dst_fd) == -1)
retval = -1;
/* Ok, writing side I can understand... */
/* Careful with writing... */
if (close(dst_fd) < 0) {
bb_perror_msg("can't close '%s'", dest);
bb_perror_msg("error writing to '%s'", dest);
retval = -1;
}
/* ...but read size is already checked by bb_copyfd_eof */