summaryrefslogtreecommitdiff
blob: 80a4b0a1a0348098beb37f9eae8c4fb3faae51da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Fix the /dev/fd test when running as a non root user
after logging in as a root user #131875

--- bash-3.1/configure
+++ bash-3.1/configure
@@ -23098,7 +23098,7 @@
   if test -d /dev/fd  && test -r /dev/fd/0 < /dev/null; then
 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
    exec 3<&0
-   if test -r /dev/fd/3; then
+   if test -e /dev/fd/3; then
      bash_cv_dev_fd=standard
    else
      bash_cv_dev_fd=absent