ar01: fix a bug of attribute "selinux" in rhel6

This patch removes the dot from the end of the
permission string if there was one.
When SELinux is enabled, "ls -ln" will list
permissions with "-rw-r--r--.", but "ar -tv" will
list permissions with "-rw-r--r--",so the case 22 will fail.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
1 file changed