diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-01-10 10:45:45 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-01-10 10:51:33 -0500 |
commit | 32e99f3888c6b5690bb7ee18a6e6ad9ff1a3f87d (patch) | |
tree | 62443145b127492a022038eb6955bfd864db1c50 /gpsd.c | |
parent | 729d860096f96c5d1a7f5bc161967b90368d92e0 (diff) | |
download | gpsd-32e99f3888c6b5690bb7ee18a6e6ad9ff1a3f87d.tar.gz |
Under Linux, use /proc to avoid opening serial devices already open.
This will help prevent gpsd from consuming data from devices such as USB modems
that happen to look like GPSes because they use a USB-to-serial adapter thar
we have whitelisted. Relies on there being a /proc filesystem with Linux-like
semantics.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1790,7 +1790,7 @@ int main(int argc, char *argv[]) for (i = optind; i < argc; i++) { if (!add_device(argv[i])) { gpsd_report(LOG_ERROR, - "GPS device %s nonexistent or can't be read\n", + "GPS device %s open failed\n", argv[i]); } } |