summaryrefslogtreecommitdiffstats
path: root/lib/utils/copyfd.cpp
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-08-24 12:32:13 +0200
committerKarel Klic <kklic@redhat.com>2010-08-24 12:32:13 +0200
commita123d0363253f734156b515d03774a71ff089f29 (patch)
tree45331ab22b1f8139def09aeeb3db928cc2d5f63f /lib/utils/copyfd.cpp
parent005335f3cc5f4883ee6327aede7eaae91688ca78 (diff)
parentd19af002e83237b5f8b67eae171a008c9bd3ccc5 (diff)
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/utils/copyfd.cpp')
-rw-r--r--lib/utils/copyfd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/copyfd.cpp b/lib/utils/copyfd.cpp
index cbcf7005..61acc479 100644
--- a/lib/utils/copyfd.cpp
+++ b/lib/utils/copyfd.cpp
@@ -134,7 +134,7 @@ off_t copyfd_size(int fd1, int fd2, off_t size, int flags)
void copyfd_exact_size(int fd1, int fd2, off_t size)
{
- off_t sz = copyfd_size(fd1, fd2, size);
+ off_t sz = copyfd_size(fd1, fd2, size, /*flags:*/ 0);
if (sz == size)
return;
if (sz != -1)
@@ -164,7 +164,7 @@ off_t copy_file(const char *src_name, const char *dst_name, int mode)
perror_msg("Can't open '%s'", dst_name);
return -1;
}
- r = copyfd_eof(src, dst);
+ r = copyfd_eof(src, dst, /*flags:*/ 0);
close(src);
close(dst);
return r;