Whamcloud - gitweb
chattr: provide an exit code in case of failure and add -f flag
authorTheodore Ts'o <tytso@mit.edu>
Mon, 22 Oct 2007 12:51:39 +0000 (08:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Oct 2007 12:52:40 +0000 (08:52 -0400)
commite68594d2376afd10e03b440b4bc288508ad13aa2
tree62b93024bd913a819afedf95c0485834aed17b11
parent14bd240b4607971151611626ec83dc821f92be5f
chattr: provide an exit code in case of failure and add -f flag

Fix chattr so that if there are errors, it will report it via a
non-zero exit code.  It will now explicitly give errors when
attempting to set files that are not files or directories (which are
currently not supported under Linux).  The -f flag will suppress error
messages from being printed, although the exit status will still be
non-zero.

Addresses-Red-Hat-Bugzilla: #180596

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
misc/chattr.1.in
misc/chattr.c