Fix -e option with only one value in qualifier statement

Wang Chao wang.chao at cn.fujitsu.com
Wed Sep 15 03:37:38 UTC 2010


If we use -e options with only one value in qualifier statement,
for example 'strace -e trace=open ls', strace will not print
syscall information properly.

* syscall.c (qualify): Fix this.

Signed-off-by: Wang Chao <wang.chao at cn.fujitsu.com>
---
 syscall.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/syscall.c b/syscall.c
index f3f6d0e..fed2fa8 100644
--- a/syscall.c
+++ b/syscall.c
@@ -436,8 +436,6 @@ qualify(const char *s)
 	for (i = 0; i < MAX_QUALS; i++) {
 		qualify_one(i, opt, !not, -1);
 	}
-	if (!strchr(s, ','))
-		return;
 	if (!(copy = strdup(s))) {
 		fprintf(stderr, "out of memory\n");
 		exit(1);
-- 
1.6.5.2






More information about the Strace-devel mailing list