"cp -p" tries to preserve GID even if preserving the UID fails.
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 9 Nov 2007 23:07:37 +0000 (01:07 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 24 Nov 2007 14:06:43 +0000 (15:06 +0100)
commitcbc06bb6390c1ad4a227723078ecd7f7689251cc
treee15224e4c5e1cdbb6817b2ae74e22587b6882099
parentad8fbe0dd2c77fe41457311f91bfcf49b0bf7616
"cp -p" tries to preserve GID even if preserving the UID fails.

* NEWS: Mention this new feature.
* src/copy.c (set_owner): Try to preserve just the GID,
when initial fchown/lchown fails.
* src/cp.c (re_protect): Likewise.
ChangeLog
NEWS
src/copy.c
src/cp.c