Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dot (SELinux) #37

Open
ghost opened this issue Sep 27, 2013 · 0 comments
Open

Remove dot (SELinux) #37

ghost opened this issue Sep 27, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 27, 2013

GNU `ls' uses a '.' character to indicate a file with an SELinux security context:

SELinux

--- ls++-org    2013-09-27 14:43:29.838145066 +0300
+++ ls++        2013-09-27 14:43:34.965145068 +0300
@@ -351,6 +351,7 @@
   $perm =~ s/(S)/fg($c[8],  $1)/eg;
   $perm =~ s/(t)/fg($c[8],  $1)/eg;
   $perm =~ s/(T)/fg($c[8],  fg('bold', $1))/eg;
+  $perm =~ s/\.//g;

   return $perm;
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants