chiark / gitweb /
util: introduce our own gperf based capability list
[elogind.git] / src / shared / copy.c
index a863246b2bf47c5ed821f2603f8ddb9f0ea3c38a..abb7fbc52b7bdbda65bd3defeb1331770ef7ba0c 100644 (file)
@@ -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;