]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/copy.c
util: copy_file_range() returns EBADF when used on a tty
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Apr 2016 10:47:36 +0000 (12:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Apr 2016 10:14:17 +0000 (12:14 +0200)
commit6402d5c628f1872a4874508bbe975aaac1cc747b
treecc3c0d7cc74ce1b2a05c532541f756dcf9174e7a
parent4f4d6ee4be1c5d3bb2f3ebce7d2d332285963830
util: copy_file_range() returns EBADF when used on a tty

In nspawn we invoke copy_bytes() on a TTY fd. copy_file_range() returns EBADF
on a TTY and this error is considered fatal by copy_bytes() so far. Correct
that, so that nspawn's copy_bytes() operation works again.

This is a follow-up for a44202e98b638024c45e50ad404c7069c7835c04.
src/basic/copy.c