Public bug reported:

Directories with a larger number of files using extended file attributes
(xattrs) break --long formatting of ls.

## Reproduce

1. Create the directory:

mkdir -p /tmp/uutils-ls-xattr-repro
cd /tmp/uutils-ls-xattr-repro

2. Create the files:

for i in $(seq -w 1 500); do
  touch "file-$i"
  setfattr -n user.test -v 'Hello World' "file-$i"
done

3. List the directory:

ls -l .

4. Output:

                                                                                
                                        -rw-rw-r--+                             
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                        1 bamf0 
bamf0     0 May 27 09:35 file-001
-rw-rw-r--+                                                                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                1 bamf0 bamf0     0 May 27 09:35 file-002
-rw-rw-r--+                                                                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                1 bamf0 bamf0     0 May 27 09:35 file-003

(Every file attribute after the permissions will be right-aligned)

** Affects: coreutils
     Importance: Unknown
         Status: Unknown

** Affects: coreutils (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- xattrs breaks ls formatting
+ xattrs break ls formatting

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154338

Title:
  xattrs break ls formatting

To manage notifications about this bug go to:
https://bugs.launchpad.net/coreutils/+bug/2154338/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to