From 7cd67fd89e7e0c4184508399d46490100ff29419 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 1 Apr 2006 20:17:41 +0000 Subject: [PATCH] [BZ #2415] * elf/ldd.bash.in: Create better error messages for invalid input files. --- ChangeLog | 4 ++++ elf/ldd.bash.in | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 97043e253b..22ea01d2af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-04-01 Ulrich Drepper + [BZ #2415] + * elf/ldd.bash.in: Create better error messages for invalid input + files. + [BZ #2477] * sysdeps/unix/sysv/linux/i386/sysdep.h: Create correct LOADARGS_* macros for non-shared position-independent code. 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 -- 2.43.5