]> granicus.if.org Git - strace/commitdiff
2004-08-30 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 31 Aug 2004 07:01:56 +0000 (07:01 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 31 Aug 2004 07:01:56 +0000 (07:01 +0000)
* strace.c (main): Don't call fake_execve under -c.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#129166.

strace.c

index 5fc640d33f48e4291a0cd6de84235939aaec0ba7..02441fcc992c9ab543b0da3f9a78ae87add93890 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -618,7 +618,9 @@ Process %u attached - interrupt to quit\n",
                        }
 #endif /* USE_PROCFS */
 #ifndef USE_PROCFS
-                       fake_execve(tcp, pathname, &argv[optind], environ);
+                       if (!cflag)
+                               fake_execve(tcp, pathname,
+                                           &argv[optind], environ);
 #endif /* !USE_PROCFS */
                        break;
                }