summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-03 23:53:30 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-03 23:53:30 -0400
commitdacf92e7f26a9a0036f26ddc50b946c0c4dc211a (patch)
treebe422ea9f00f97ee771e74573e958b18ad51eab9 /gpspipe.c
parentd5a04a636805e3a8bca67f868ebb4364bd1da1cc (diff)
downloadgpsd-dacf92e7f26a9a0036f26ddc50b946c0c4dc211a.tar.gz
Address Debian bug #576378.
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 91a4771d..9f900d5c 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -238,7 +238,7 @@ int main( int argc, char **argv)
} else
gpsd_source_spec(NULL, &source);
- if (serialport!=NULL && raw) {
+ if (serialport!=NULL && !raw) {
(void)fprintf(stderr, "gpspipe: use of '-s' requires '-r'.\n");
exit(1);
}