(copy_internal): Move the one-file-system test so that
authorJim Meyering <jim@meyering.net>
Fri, 30 Apr 1999 15:40:34 +0000 (15:40 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 30 Apr 1999 15:40:34 +0000 (15:40 +0000)
commit25a8d1f1e98ef60c9a8b7f6a46bc96b12246c59a
treeff168c34d64080a5245213cc6f763b42f42f1bf3
parentf0e50d53d5f6ed1ddcca95b903257b3a64adf982
(copy_internal): Move the one-file-system test so that
it follows the `if (new_dst || !S_ISDIR (dst_sb.st_mode))' block.
Prior to this change, `cp --one-file-system' would traverse a file-
system boundary if the destination directory existed.
From thospel@mail.dma.be.
src/copy.c