if you login as one user (say 'root') and then `su` to another (say 'vapier'), 
the ./configure test for /dev/fd will fail ... the reason being that the node 
in /dev/pts/ is owned by the user that logged in

might i suggest this change in the /dev/fd test:
[bash_cv_dev_fd=""
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
     bash_cv_dev_fd=standard
   else
     bash_cv_dev_fd=absent
   fi
   exec 3<&-
fi
if test -z "$bash_cv_dev_fd"; then
  if test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
     bash_cv_dev_fd=whacky
   else
     bash_cv_dev_fd=absent
   fi
fi
]

or perhaps just this one liner change:
    exec 3<&0
-   if test -r /dev/fd/3; then
+   if test -e /dev/fd/3; then
      bash_cv_dev_fd=standard
-mike


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to