]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - misc/lsattr.c
lsattr: exit with a non-zero status on errors
authorEric Sandeen <sandeen@redhat.com>
Thu, 18 Jun 2009 22:51:07 +0000 (17:51 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Jun 2009 01:46:34 +0000 (21:46 -0400)
commit1b600bfa48cf55571e342208d6baa1c832f34bb1
tree7b8f8ccbdb6ba5891c1aaa56ec268ce7825230cf
parent8a480350952f6f0fdbce54326b6d847e66368897
lsattr: exit with a non-zero status on errors

lsattr doesn't return an error if you point it at a file that
doesn't exist.

This is slightly trickier because it can take more than one
file as an arg, but ls seems to report an error if any occurred,
so this does the same, it'll report the last error that was
encountered.

Addresses-RedHat-Bugzilla: #489841
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/lsattr.c