platform_external_selinux/policycoreutils/setfiles
Martin Orr af1c9091e3 policycoreutils: setfiles: Fix process_glob error handling
process_one_realpath returns 1 if it changed the context of the file but
process_glob treats all non-zero values as errors.  This results in
setfiles exiting with non-zero status even though it was successful.

Fix process_glob to only treat negative return values of
process_one_realpath as errors.

cf. http://bugs.debian.org/662990

Signed-off-by: Martin Orr <martin@martinorr.name>
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
2012-09-12 12:16:04 -04:00
..
.gitignore policycoreutils: setfiles/restorecon minor improvements 2012-09-12 12:16:00 -04:00
Makefile policycoreutils: setfiles/restorecon minor improvements 2012-09-12 12:16:00 -04:00
restore.c policycoreutils: setfiles: Fix process_glob error handling 2012-09-12 12:16:04 -04:00
restore.h policycoreutils: setfiles: move exclude_non_seclabel_mounts to a generic location 2011-08-26 14:27:59 -04:00
restorecon.8 policycoreutils: restorecon: only update type by default 2012-09-12 12:16:02 -04:00
setfiles.8 policycoreutils: restorecon: only update type by default 2012-09-12 12:16:02 -04:00
setfiles.c policycoreutils: setfiles: Fix process_glob error handling 2012-09-12 12:16:04 -04:00