From 84ee0960443b795936026239f8c0ff8429aed699 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 6 Nov 2014 21:20:32 +0100 Subject: copy: change error code when hitting copy limit to EFBIG After all, this is about files, not arguments, hence EFBIG is more appropriate than E2BIG --- src/shared/copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shared/copy.c') diff --git a/src/shared/copy.c b/src/shared/copy.c index a863246b2b..abb7fbc52b 100644 --- a/src/shared/copy.c +++ b/src/shared/copy.c @@ -37,7 +37,7 @@ int copy_bytes(int fdf, int fdt, off_t max_bytes) { if (max_bytes != (off_t) -1) { if (max_bytes <= 0) - return -E2BIG; + return -EFBIG; if ((off_t) m > max_bytes) m = (size_t) max_bytes; -- cgit v1.2.3-54-g00ecf