[PATCH] [klibc] Fix minimal mv to work across fs
authormaximilian attems <max@stro.at>
Mon, 4 Jul 2011 15:51:52 +0000 (17:51 +0200)
committerBen Hutchings <benh@debian.org>
Mon, 28 Jun 2021 14:24:37 +0000 (15:24 +0100)
commit87d86364d4e8cbb7520f6f2535808faebac954ba
tree8fd1a3806b5ec0ef79e2dc917b453a83fec18b86
parente7fba9b587d13d2f68a76b335258ae55623875c0
[PATCH] [klibc] Fix minimal mv to work across fs

Forwarded: not-needed

This is the use case in initramfs to keep data from /run to /root/run
before calling switch_root().

copy_file() doesn't yet catch EINTR, but that seems less of an issue
in initramfs.

copy_file() and much logic out of copy() is from Ulrich Dangel.
Thank you for the collaboration on this blocker for
http://bugs.debian.org/627808

While we are it require move to have mv at least 2 arguments passed.

Signed-off-by: Ulrich Dangel <uli@spamt.net>
Signed-off-by: maximilian attems <max@stro.at>
[bwh: This is no longer needed by initramfs-tools starting with version 0.121,
 so can be dropped after the stretch release]

Gbp-Pq: Name Fix-minimal-mv-to-work-across-fs
usr/utils/mv.c