Skip to content

Remove dot (SELinux) #37

@ghost

Description

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;
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions