This has been fixed upstream as of:
https://github.com/uutils/coreutils/issues/10980

** Bug watch added: github.com/uutils/coreutils/issues #10980
   https://github.com/uutils/coreutils/issues/10980

** Also affects: coreutils via
   https://github.com/uutils/coreutils/issues/10980
   Importance: Unknown
       Status: Unknown

** Description changed:

  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"
+   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-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
  
- (Everything file attribute after the permissions will be right-aligned)
+ (Every file attribute after the permissions will be right-aligned)

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