about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--elf/ldd.bash.in3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cc7ad62684..425264b697 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-21  Ulrich Drepper  <drepper@redhat.com>
+
+	* elf/ldd.bash.in: Fix syntax errors.
+
 2004-09-20  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/unix/sysv/linux/dl-execstack.c
diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in
index 6ee9b60e51..f400924217 100644
--- a/elf/ldd.bash.in
+++ b/elf/ldd.bash.in
@@ -75,6 +75,7 @@ For bug reporting instructions, please see:
   -u | --u | --un | --unu | --unus | --unuse | --unused)
     unused=yes
     shift
+    ;;
   --v | --ve | --ver)
     echo >&2 $"ldd: option \`$1' is ambiguous"
     exit 1
@@ -102,7 +103,7 @@ nonelf ()
 add_env="LD_TRACE_LOADED_OBJECTS=1 LD_WARN=$warn LD_BIND_NOW=$bind_now"
 add_env="$add_env LD_VERBOSE=$verbose"
 if test "$unused" = yes; then
-  add_env="$add_env LD_DEBUG="$LD_DEBUG${LD_DEBUG:+,}unused"
+  add_env="$add_env LD_DEBUG=\"$LD_DEBUG${LD_DEBUG:+,}unused\""
 fi
 case $# in
 0)