Don't fail if the file flags of source and copied symlinks don't match.
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Fri, 5 Sep 2008 03:16:55 +0000 (03:16 +0000)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Fri, 5 Sep 2008 03:16:55 +0000 (03:16 +0000)
commit3d6b90baddd1eae7a5a95a794a9efd8fa6987d30
tree6d56b5fb5712a7d392eb08723cbb4fbd35b96748
parent9bb435706fe5447beadd4781cbae8355dd69a86a
Don't fail if the file flags of source and copied symlinks don't match.
Although there's no lchflags(), symlinks inherit file flags of their
parent directory(for history retention flags), so file flags may be set
on symlinks.  chflags(1) on a symlink doesn't do anything nor does it
return an error code, so the new behavior is more consistent with
chflags(1)'s.
Symlinks don't inherit file flags on previous versions of DragonFly
or on FreeBSD, so this code has never had a chance to return ENOSYS.

Suggested-By: Matt
bin/cp/utils.c