bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#8578: 8.12 and 8.10 'ls -dl' appends ' ' (0x20: space) to


From: Eric Blake
Subject: bug#8578: 8.12 and 8.10 'ls -dl' appends ' ' (0x20: space) to
Date: Thu, 28 Apr 2011 14:41:16 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9

On 04/28/2011 02:27 PM, Alan Curry wrote:
>>> 0000000   d   r   w   x   r   -   x   r   -   x   .       2   5       r=
>>
>>>            7264    7877    2d72    7278    782d    202e    3532    7220=
> 
> Did anyone else notice the '.' after the drwxr-xr-x part? I bet that's
> what's confusing python.
> 
>        The  file  mode  written  under the -l,   -g, -n, and -o  options shall
>        consist of the following format:
> 
>               "%c%s%s%s%c", <entry type>, <owner permissions>,
>                   <group permissions>, <other permissions>,
>                   <optional alternate access method flag>

Coreutils uses '.' as the printable character for alternate access
method flag if the file has SELinux attributes attached to it, since
SELinux labels can indeed deny access to a file beyond what is implied
by the traditional 9 bits; coreutils also uses '+' for ACLs.  If python
isn't grokking the '.' or '+', that's a bug in python, not coreutils.

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]