"ls -l" wouldn't output "+" on SELinux hosts unless -Z was also given.
commit4245876e23866a198b92ed5c371658d8428d89ac
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 11 Dec 2007 20:16:24 +0000 (11 21:16 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 11 Dec 2007 20:16:24 +0000 (11 21:16 +0100)
treeca6e8943577ba81af2b2bab031def90533a044f3
parent291eb90a0a5515680a78a64fe8ddef4f417bd0f7
"ls -l" wouldn't output "+" on SELinux hosts unless -Z was also given.

* src/ls.c (gobble_file): Also get the file context if -l is specified.
Treat getfilecon failures like file_has_acl failures.
(UNKNOWN_SECURITY_CONTEXT): New constant.
(clear_files): Don't free it.
(gobble_file): Set unknown security contexts to it; that way, we
don't have to have special cases for unknown contexts.
(print_long_format, print_file_name_and_frills): Don't worry
about scontext being null, since it's always some string now.
ChangeLog
src/ls.c