summaryrefslogtreecommitdiff
path: root/elf/ldd.bash.in
diff options
context:
space:
mode:
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