[Bug 2129818] [NEW] 0.3.0 regression: ls: cannot access '/proc/self/fd/3': No such file or directory
Julian Andres Klode
2129818 at bugs.launchpad.net
Sat Oct 25 19:49:25 UTC 2025
Public bug reported:
APT's test/integration/test-no-fds-leaked-to-maintainer-scripts fails
with rust-coreutils 0.3.0
This installs a test package that does ls -l /proc/self/fd in the
maintainer scripts. The script is:
#!/bin/sh
set -x
if [ -e '$(pwd)/rootdir/tmp/read_stdin' ]; then
▸ read line;
▸ echo "STDIN: -\$line-"
fi
ls -l /proc/self/fd/
exit \$?
the tail is:
+ ls -l /proc/self/fd/
ls: cannot access '/proc/self/fd/3': No such file or directory
total 0
lr-x------ 1 root root 64 Oct 25 21:48 0 -> /dev/null
lrwx------ 1 root root 64 Oct 25 21:48 1 -> /dev/pts/4
lrwx------ 1 root root 64 Oct 25 21:48 2 -> /dev/pts/4
lr-x------ 1 root root 64 Oct 25 21:48 3
+ exit 1
This is likely related to the safe traversal feature.
** Affects: rust-coreutils (Ubuntu)
Importance: Undecided
Status: New
** Tags: block-proposed
** Tags added: block-proposed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2129818
Title:
0.3.0 regression: ls: cannot access '/proc/self/fd/3': No such file or
directory
Status in rust-coreutils package in Ubuntu:
New
Bug description:
APT's test/integration/test-no-fds-leaked-to-maintainer-scripts fails
with rust-coreutils 0.3.0
This installs a test package that does ls -l /proc/self/fd in the
maintainer scripts. The script is:
#!/bin/sh
set -x
if [ -e '$(pwd)/rootdir/tmp/read_stdin' ]; then
▸ read line;
▸ echo "STDIN: -\$line-"
fi
ls -l /proc/self/fd/
exit \$?
the tail is:
+ ls -l /proc/self/fd/
ls: cannot access '/proc/self/fd/3': No such file or directory
total 0
lr-x------ 1 root root 64 Oct 25 21:48 0 -> /dev/null
lrwx------ 1 root root 64 Oct 25 21:48 1 -> /dev/pts/4
lrwx------ 1 root root 64 Oct 25 21:48 2 -> /dev/pts/4
lr-x------ 1 root root 64 Oct 25 21:48 3
+ exit 1
This is likely related to the safe traversal feature.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2129818/+subscriptions
More information about the foundations-bugs
mailing list