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 <ben@decadent.org.uk>
Sun, 5 Oct 2014 00:13:31 +0000 (00:13 +0000)
commit29e47f37f2a76c5b4496a123ed80b9a1603c280d
tree8cadccbaa446c606166684371741cf223471925d
parent971ff6e799dd2b038c18def912a9ad679223eb72
Fix minimal mv to work across fs

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>
Gbp-Pq: Name Fix-minimal-mv-to-work-across-fs
usr/utils/mv.c