chcon, chgrp, chmod and chown now diagnose a directory cycle
authorJim Meyering <meyering@redhat.com>
Sat, 7 Nov 2009 07:09:12 +0000 (08:09 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 7 Nov 2009 07:43:00 +0000 (08:43 +0100)
commitd9dbbb9a455f6bfc4e09d9f5f6c6c633f1b03c52
tree54ab2f41b2d2de1918d2b18913df819d0b6cfbba
parent74cf4cb26dcecd36eb45dc00dbd4587d9dc24a2f
chcon, chgrp, chmod and chown now diagnose a directory cycle

* lib/xfts.c (cycle_warning_required): New function.
* lib/xfts.h: Declare it.
* src/chown-core.c (change_file_owner): Diagnose a cycle.
* src/chmod.c (process_file): Likewise.
* src/chcon.c (process_file): Likewise.
* NEWS (Bug fixes): Mention this.
NEWS
lib/xfts.c
lib/xfts.h
src/chcon.c
src/chmod.c
src/chown-core.c