]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: chown, chgrp, chmod, chcon: remove unnecessary initialization
authorJim Meyering <meyering@redhat.com>
Mon, 31 Aug 2009 16:26:16 +0000 (18:26 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 1 Sep 2009 10:10:07 +0000 (12:10 +0200)
commitb2c30136dce9d9cb14afc1431f83b8e4bf75ee0a
treeb613464e726cddc189c9ff181ede8209210c0c11
parente3b14643f49573b23f707e124374e0065119a3e6
maint: chown, chgrp, chmod, chcon: remove unnecessary initialization

* src/chown-core.c: Include "ignore-value.h".
(change_file_owner): Don't set "ent" only to ignore it.
* src/chcon.c (process_file): Likewise.
* src/chmod.c: Include "ignore-value.h".
(process_file): Don't set "ent" only to ignore it.
After diagnosing root-dev/ino failure, return false immediately:
Now that we don't set "ent" we must be sure not to use it uninitialized,
and there's no point in issuing --verbose-related output in this case.
src/chcon.c
src/chmod.c
src/chown-core.c