summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-08-11 19:18:46 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-08-11 19:18:46 -0400
commit95f668029e0f4362cf3cbe2659eea001e8aaefaa (patch)
treea28db634345521b4ac5715bf729c1127188d80c8 /gpsd.c
parenta3d56651f5e902554440342062538bfa0d36b4a6 (diff)
downloadgpsd-95f668029e0f4362cf3cbe2659eea001e8aaefaa.tar.gz
Improved explanation of the priv-dropping problem. All regression tests pass.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsd.c b/gpsd.c
index 82c42052..a9957ee8 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1993,10 +1993,10 @@ int main(int argc, char *argv[])
* Drop privileges.
*
* Yes, the test for this is non-orthogonal and ugly. The problem
- * is that there are two calls in the PPS support, way later on,
- * that require root (see ntpmshm.c and look for "requires
- * root"). We've overloaded -N with the meaning "don't drop
- * privileges" pending a better solution.
+ * is that there is a line-discipline setup call in the PPS
+ * support, way later on, that require root (see ntpmshm.c and
+ * look for "requires root"). We've overloaded -N with the meaning
+ * "don't drop privileges" pending a better solution.
*/
if (getuid() == 0 && go_background) {
struct passwd *pw;