2004-08-30 Roland McGrath <roland@redhat.com>

* strace.c (main): Don't call fake_execve under -c.
	From Ulrich Drepper <drepper@redhat.com>.
	Fixes RH#129166.
This commit is contained in:
Roland McGrath 2004-08-31 07:01:56 +00:00
parent 4f6ba69d99
commit 08f0ae30fd

View File

@ -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;
}