]> git.ipfire.org Git - thirdparty/coreutils.git/commit
When chown or chgrp is modifying the referent of a symlink,
authorJim Meyering <jim@meyering.net>
Sat, 1 May 2004 14:33:41 +0000 (14:33 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 1 May 2004 14:33:41 +0000 (14:33 +0000)
commit83db4e147a59e082edfc4f8a511b6b1304a90821
tree470f6cf374483d29e7fb9fb1db3509dda454b6e0
parentafef52af2f1a38b348a73a4914f236c82574ebbf
When chown or chgrp is modifying the referent of a symlink,
use the chown(2) function, if possible.

(change_file_owner): Don't hard-code the
open/fchown/close kludge here.  Use `chown' instead.
The chown function works just fine on conforming systems.
Other systems now go through the new chown wrapper that
resorts to the old kludge.
src/chown-core.c