OSDN Git Service

If /tmp and /home were different partitions, then "mv /tmp/file /home/file"
authorRob Landley <rob@landley.net>
Wed, 20 Jul 2005 00:45:40 +0000 (00:45 -0000)
committerRob Landley <rob@landley.net>
Wed, 20 Jul 2005 00:45:40 +0000 (00:45 -0000)
commit3c12ff7c894d930b1c431954f645087724017995
treef03892cf7bdd37148841e4b4caa3720f67da38d1
parentc337d29550162e4130fe74a1f2c7118da3110343
If /tmp and /home were different partitions, then "mv /tmp/file /home/file"
would delete /home/file even if /tmp/file didn't exist.

This fixes that, although the logic of both mv and cp is a bit tangled and
should probably be untangled.
coreutils/mv.c