summaryrefslogtreecommitdiff
path: root/strace-log-merge
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2012-03-26 12:10:01 +0000
committerDmitry V. Levin <ldv@altlinux.org>2012-03-26 12:10:01 +0000
commit030d555ce5465b90881b0c79c6f54c7396df5f37 (patch)
tree58947cd67fbaa9937035b01178b9add6689b63f0 /strace-log-merge
parentdf790130ff66b7cb9b3499210bae21a5baede111 (diff)
downloadstrace-030d555ce5465b90881b0c79c6f54c7396df5f37.tar.gz
strace-030d555ce5465b90881b0c79c6f54c7396df5f37.tar.bz2
strace-030d555ce5465b90881b0c79c6f54c7396df5f37.tar.xz
strace-log-merge: fix file suffix calculation
* strace-log-merge: Quote file prefix to fix file suffix calculation. Reported-by: Denys Vlasenko <vda.linux@googlemail.com> Suggested-by: Andreas Schwab <schwab@linux-m68k.org>
Diffstat (limited to 'strace-log-merge')
-rwxr-xr-xstrace-log-merge2
1 files changed, 1 insertions, 1 deletions
diff --git a/strace-log-merge b/strace-log-merge
index 14b3bf1..8ab2409 100755
--- a/strace-log-merge
+++ b/strace-log-merge
@@ -25,7 +25,7 @@ logfile=$1
for file in "$logfile".*; do
[ -f "$file" ] || continue
- suffix=${file#$logfile.}
+ suffix=${file#"$logfile".}
[ "$suffix" -gt 0 ] 2> /dev/null ||
continue
pid=$(printf "%-5s" $suffix)