aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-11-26 20:58:27 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2012-11-26 20:58:27 +0100
commitd260b3b40358aaa9a159681271e7420842015a61 (patch)
tree52a2b4701607a3ff6fd49f6ed8d2176e6f3bb69c
parent3e2e43e2504b5dd2768afc0f8b6de77849f5a376 (diff)
downloadglibc-d260b3b40358aaa9a159681271e7420842015a61.tar
glibc-d260b3b40358aaa9a159681271e7420842015a61.tar.gz
glibc-d260b3b40358aaa9a159681271e7420842015a61.tar.bz2
glibc-d260b3b40358aaa9a159681271e7420842015a61.zip
sotruss: fix argument parsing
-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