This is weird, listxattr reads 1, 2,3 in the current dir ...

openat(AT_FDCWD, "/proc/self/fd", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
[...]
statx(3, "0", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, 
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, 
stx_mode=S_IFLNK|0700, stx_size=64, ...}) = 0
statx(3, "1", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, 
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, 
stx_mode=S_IFLNK|0700, stx_size=64, ...}) = 0
statx(3, "2", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, 
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, 
stx_mode=S_IFLNK|0700, stx_size=64, ...}) = 0
statx(3, "3", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, 
{stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, 
stx_mode=S_IFLNK|0500, stx_size=64, ...}) = 0
[...]
readlink("/proc/self/fd/0", "/dev/pts/8", 256) = 10
listxattr("1", 0x7ffdfe0850b0, 4096)    = -1 ENOENT (No such file or directory)
readlink("/proc/self/fd/1", "/dev/pts/8", 256) = 10
listxattr("2", 0x7ffdfe0850b0, 4096)    = -1 ENOENT (No such file or directory)
readlink("/proc/self/fd/2", "/dev/pts/8", 256) = 10
listxattr("3", 0x7ffdfe0850b0, 4096)    = -1 ENOENT (No such file or directory)
readlink("/proc/self/fd/3", 0x62b8bdbe65c0, 256) = -1 ENOENT (No such file or 
directory)

(listxattr succeed if I touch those files)

Yes /proc/self/fd/3 exists, but readlink() return ENOENT, ls wrongly
reports this as an error.

** Changed in: rust-coreutils (Ubuntu)
   Importance: Undecided => High

** Changed in: rust-coreutils (Ubuntu)
       Status: New => Triaged

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

Title:
  0.3.0 regression: ls: cannot access '/proc/self/fd/3': No such file or
  directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2129818/+subscriptions


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

Reply via email to