summaryrefslogtreecommitdiff
path: root/gpsd.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-11-29 05:58:07 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-11-29 05:58:07 +0000
commit5999e86621b60948fd0a006705834cb7e4a04a94 (patch)
treec056cbd50d9ba3cb0ec258e7c20ea58b305ddb78 /gpsd.h
parentcb3bb51b406a3f070191b44a58f547d502965dcb (diff)
downloadgpsd-5999e86621b60948fd0a006705834cb7e4a04a94.tar.gz
We temporarily need root privs to set up the nmea line discipline on OpenBSD.
This diff makes that happen, and tries to be forthcoming about when it is making gpsd run as root.
Diffstat (limited to 'gpsd.h')
-rw-r--r--gpsd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsd.h b/gpsd.h
index 8b91e6eb..60f1d3d1 100644
--- a/gpsd.h
+++ b/gpsd.h
@@ -31,6 +31,9 @@
/* this is where we choose the confidence level to use in reports */
#define GPSD_CONFIDENCE CEP95_SIGMA
+/* several places in the code try setuid. put our preferred username here */
+#define GPSD_USER "nobody"
+
/* a few bits of ISGPS magic */
enum isgpsstat_t {
ISGPS_NO_SYNC, ISGPS_SYNC, ISGPS_SKIP, ISGPS_MESSAGE,