Declare lstat.
authorJim Meyering <jim@meyering.net>
Fri, 15 Dec 2000 13:24:47 +0000 (13:24 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 15 Dec 2000 13:24:47 +0000 (13:24 +0000)
commit9724aab7a65d8831d3322b1ed196b627b4b006ba
treeee3df748f885bfbb7a2d7ab93e9f36541dbaaee4
parentb6ca14a123d26e810d4a329076841e467bb6e756
Declare lstat.
Rename change_symlinks member to `dereference' and use the DEREF_*
enum values.
(describe_change): Merge the chgrp and chown switch statements.
Use xmalloc to form the `user:group' string.
(change_file_owner): Record (and later, use) is_symlink and is_directory
from the lstat stats, in order to control whether we operate on symlinks
and whether (with -R) we traverse symlinks to directories.
When dereferencing, use open/fchown (rather than chown) on symlinks.
src/chown-core.c