summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-01 20:17:41 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-01 20:17:41 +0000
commit7cd67fd89e7e0c4184508399d46490100ff29419 (patch)
tree53517b7ae1d6b41430cb9d438688a90ac2279645 /elf
parenta44cffaa1235dc9e46c3d8174961eb4793c391ac (diff)
downloadglibc-7cd67fd89e7e0c4184508399d46490100ff29419.tar.gz
glibc-7cd67fd89e7e0c4184508399d46490100ff29419.tar.xz
glibc-7cd67fd89e7e0c4184508399d46490100ff29419.zip
[BZ #2415]
	* elf/ldd.bash.in: Create better error messages for invalid input
	files.
Diffstat (limited to 'elf')
-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