summaryrefslogtreecommitdiff
path: root/src/basic/copy.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-26 14:57:04 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-26 14:57:04 +0200
commitd7fe83bbc23d9976433fddaf6509cc6bebc0ecdd (patch)
treee5748844e740c3e7452040154fd3035b304eaee8 /src/basic/copy.c
parent6e3930c40f3379b7123e505a71ba4cd6db6c372f (diff)
parent4aeb20f5aaec25ef969989b64d37377913b2a1ef (diff)
Merge pull request #3093 from poettering/nspawn-userns-magic
nspawn automatic user namespaces
Diffstat (limited to 'src/basic/copy.c')
-rw-r--r--src/basic/copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/copy.c b/src/basic/copy.c
index e2db4be9ff..03487a6878 100644
--- a/src/basic/copy.c
+++ b/src/basic/copy.c
@@ -102,7 +102,7 @@ int copy_bytes(int fdf, int fdt, uint64_t max_bytes, bool try_reflink) {
if (try_cfr) {
n = try_copy_file_range(fdf, NULL, fdt, NULL, m, 0u);
if (n < 0) {
- if (!IN_SET(n, -EINVAL, -ENOSYS, -EXDEV))
+ if (!IN_SET(n, -EINVAL, -ENOSYS, -EXDEV, -EBADF))
return n;
try_cfr = false;