about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rwxr-xr-xelf/sotruss.ksh4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bca890ac38..a6af6e7ad4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
+
+	* elf/sotruss.ksh: Correctly locate argument of -F and -T options.
+
 2012-11-24  Adam Conrad  <adconrad@0c3.net>
 
 	* configure.in: Autodetect C++ header directories.
diff --git a/elf/sotruss.ksh b/elf/sotruss.ksh
index 587ab68987..8390b6c501 100755
--- a/elf/sotruss.ksh
+++ b/elf/sotruss.ksh
@@ -94,14 +94,14 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
       do_missing_arg "$1"
     fi
     shift
-    SOTRUSS_FROMLIST="$2"
+    SOTRUSS_FROMLIST="$1"
     ;;
   -T | --t | --to)
     if test $# -eq 1; then
       do_missing_arg "$1"
     fi
     shift
-    SOTRUSS_TOLIST="$2"
+    SOTRUSS_TOLIST="$1"
     ;;
   -o | --o | --ou | --out | --outp | --outpu | --output)
     if test $# -eq 1; then