selinux/policycoreutils
Alan Jenkins 8c662db964 policycoreutils: fixfiles should handle path arguments more robustly
E.g. `fixfiles restore -v /usr` - before:

Warning: Skipping the following R/O filesystems:
/sys/fs/cgroup
Progress and Verbose mutually exclusive
usage:  /sbin/restorecon [-iFnprRv0] [-e excludedir] pathname...
usage:  /sbin/restorecon [-iFnprRv0] [-e excludedir] -f filename
Warning: Skipping the following R/O filesystems:
/sys/fs/cgroup
229k

after:

Warning: Skipping the following R/O filesystems:
/sys/fs/cgroup
/sbin/restorecon:  lstat(-v) failed:  No such file or directory
Warning: Skipping the following R/O filesystems:
/sys/fs/cgroup
229k

This matches the usage shown in the manual page.  While we're in there,
we should handle spaces as well e.g `fixfiles restore "a b"`.  Before:

Warning: Skipping the following R/O filesystems:
/sys/fs/cgroup
/sbin/restorecon:  lstat(b) failed:  No such file or directory

After:

Warning: Skipping the following R/O filesystems:
/sys/fs/cgroup
/sbin/restorecon:  lstat(a b) failed:  No such file or directory

Signed-off-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
2017-03-28 13:41:04 -04:00
..
.tx
hll policycoreutils: add noreturn attribute to usage() 2017-03-07 14:00:43 -05:00
load_policy policycoreutils: add noreturn attribute to usage() 2017-03-07 14:00:43 -05:00
man
newrole libsepol: use constant keys in hashtab functions 2017-01-19 08:46:19 -05:00
po
run_init policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
scripts policycoreutils: fixfiles should handle path arguments more robustly 2017-03-28 13:41:04 -04:00
secon policycoreutils: add noreturn attribute to usage() 2017-03-07 14:00:43 -05:00
semodule policycoreutils/semodule: fix -Wwrite-strings warnings 2017-02-06 11:06:42 -05:00
sestatus
setfiles policycoreutils: add noreturn attribute to usage() 2017-03-07 14:00:43 -05:00
setsebool policycoreutils: add noreturn attribute to usage() 2017-03-07 14:00:43 -05:00
.gitignore Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
COPYING
Makefile Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
VERSION