summaryrefslogtreecommitdiff
path: root/elf/ldd.bash.in
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-04-24 08:55:46 +0000
committerJakub Jelinek <jakub@redhat.com>2006-04-24 08:55:46 +0000
commitd0145e03799e484f3a53d79de3b3f34162ee9d3c (patch)
treed8c51a0952204f9015de0db3319d4c820e8646e0 /elf/ldd.bash.in
parentf5ce81c94cc27035f44d37bffa7f7e08dbce7631 (diff)
Updated to fedora-glibc-20060424T0820
Diffstat (limited to 'elf/ldd.bash.in')
-rw-r--r--elf/ldd.bash.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index 100d2335d2..a22ad15b59 100644
--- a/elf/ldd.bash.in
+++ b/elf/ldd.bash.in
@@ -144,9 +144,12 @@ for file do
*) file=./$file
;;
esac
- if test ! -f "$file"; then
+ if test ! -e "$file"; then
echo "ldd: ${file}:" $"No such file or directory" >&2
result=1
+ elif test ! -f "$file"; then
+ echo "ldd: ${file}:" $"not regular file" >&2
+ result=1
elif test -r "$file"; then
test -x "$file" || echo 'ldd:' $"\
warning: you do not have execution permission for" "\`$file'" >&2