chown now accepts POSIX-mandated -H, -L, -P options and uses
authorJim Meyering <jim@meyering.net>
Wed, 15 Oct 2003 21:16:46 +0000 (21:16 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 15 Oct 2003 21:16:46 +0000 (21:16 +0000)
commitfe9f5bdf77653c54bb6cd05faea98e6252558ccd
treee2b9f370ad35e014734f78bf5a72dd9210360444
parenta2740f057aa9d65c7a1fb507e3e0dabb761d4a54
chown now accepts POSIX-mandated -H, -L, -P options and uses
fts to perform a directory traversal when -R is specified.
Before, it used explicit recursion, and as such was limited by
the user's stack size to handling hierarchies no deeper than
about 30,000 levels.

Include "userspec.h" and "fts_.h".
(WRITTEN_BY): Add my name.
(getpwnam, getgrnam, getgrgid): Remove declarations.
(endpwent): Remove definition.
(usage): Update
(main): Handle new options.
Call new function, chown_files rather than change_file_owner.
src/chown.c