diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2012-03-26 12:10:01 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2012-03-26 12:10:01 +0000 |
commit | 030d555ce5465b90881b0c79c6f54c7396df5f37 (patch) | |
tree | 58947cd67fbaa9937035b01178b9add6689b63f0 /strace-log-merge | |
parent | df790130ff66b7cb9b3499210bae21a5baede111 (diff) | |
download | strace-030d555ce5465b90881b0c79c6f54c7396df5f37.tar.gz |
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-x | strace-log-merge | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strace-log-merge b/strace-log-merge index 14b3bf1a8..8ab24091d 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) |