diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2002-06-04 19:50:13 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2002-06-04 19:50:13 +0000 |
commit | 0361d45d820f658e9affe1ea465617b1f398c380 (patch) | |
tree | d135703651555ddb50c48280aef6329d61eba7c7 /bin/systrace/systrace.c | |
parent | 09e2204064ce4c6105b1410cedea251bae8857f6 (diff) |
guipath for getopt
Diffstat (limited to 'bin/systrace/systrace.c')
-rw-r--r-- | bin/systrace/systrace.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index a4c6ae66a08..daad56032bf 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.5 2002/06/04 19:43:35 provos Exp $ */ +/* $OpenBSD: systrace.c,v 1.6 2002/06/04 19:50:12 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -382,9 +382,10 @@ main(int argc, char **argv) int i, c; char **args; char *filename = NULL; + char *guipath = _PATH_XSYSTRACE; int usex11 = 1; - while ((c = getopt(argc, argv, "aitf:")) != -1) { + while ((c = getopt(argc, argv, "aitg:f:")) != -1) { switch (c) { case 'a': automatic = 1; @@ -392,6 +393,9 @@ main(int argc, char **argv) case 'i': inherit = 1; break; + case 'g': + guipath = optarg; + break; case 'f': filename = optarg; break; @@ -434,7 +438,7 @@ main(int argc, char **argv) err(1, "attach"); if (usex11 && !automatic) - requestor_start(_PATH_XSYSTRACE); + requestor_start(guipath); if (kill(pid, SIGCONT) == -1) err(1, "kill"); |