summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/systrace/systrace.c6
-rw-r--r--bin/systrace/systrace.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c
index 51433fca8bc..a4c6ae66a08 100644
--- a/bin/systrace/systrace.c
+++ b/bin/systrace/systrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.c,v 1.4 2002/06/04 19:25:54 provos Exp $ */
+/* $OpenBSD: systrace.c,v 1.5 2002/06/04 19:43:35 provos Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -357,7 +357,7 @@ requestor_start(char *path)
execvp(path, argv);
- err(1, "execvp");
+ err(1, "execvp: %s", path);
}
close(pair[1]);
@@ -434,7 +434,7 @@ main(int argc, char **argv)
err(1, "attach");
if (usex11 && !automatic)
- requestor_start("./notification/src/notification");
+ requestor_start(_PATH_XSYSTRACE);
if (kill(pid, SIGCONT) == -1)
err(1, "kill");
diff --git a/bin/systrace/systrace.h b/bin/systrace/systrace.h
index b60065a73c6..9ee40ad3dd5 100644
--- a/bin/systrace/systrace.h
+++ b/bin/systrace/systrace.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.h,v 1.2 2002/06/04 19:15:54 deraadt Exp $ */
+/* $OpenBSD: systrace.h,v 1.3 2002/06/04 19:43:35 provos Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -33,6 +33,8 @@
#define _SYSTRACE_H_
#include <sys/queue.h>
+#define _PATH_XSYSTRACE "/usr/X11R6/bin/xsystrace"
+
enum logicop { LOGIC_AND, LOGIC_OR, LOGIC_NOT, LOGIC_SINGLE };
struct logic {