diff options
Diffstat (limited to 'shells/bash2/files/patch-ac')
-rw-r--r-- | shells/bash2/files/patch-ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shells/bash2/files/patch-ac b/shells/bash2/files/patch-ac index 40f7df40b148..56117d592f64 100644 --- a/shells/bash2/files/patch-ac +++ b/shells/bash2/files/patch-ac @@ -12,3 +12,19 @@ $FreeBSD$ *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment *-aix*) opt_bash_malloc=no ;; # AIX machines *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep +@@ -15218,7 +15218,14 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + if test -d /dev/fd && test -r /dev/fd/0; then +- bash_cv_dev_fd=standard ++ # FreeBSD's devfs only provides /dev/fd/[0-2] ++ exec 3<&0 ++ if test -r /dev/fd/3; then ++ bash_cv_dev_fd=standard ++ else ++ bash_cv_dev_fd=absent ++ fi ++ exec 3<&- + elif test -d /proc/self/fd && test -r /proc/self/fd/0; then + bash_cv_dev_fd=whacky + else |