14 lines
492 B
Diff
14 lines
492 B
Diff
Index: streams/wvmodem.cc
|
|
===================================================================
|
|
--- streams/wvmodem.cc.orig
|
|
+++ streams/wvmodem.cc
|
|
@@ -207,7 +207,7 @@ void WvModem::setup_modem(bool rtscts)
|
|
sinfo.closing_wait = ASYNC_CLOSING_WAIT_NONE;
|
|
sinfo.closing_wait2 = ASYNC_CLOSING_WAIT_NONE;
|
|
|
|
- if (ioctl(getrfd(), TIOCSSERIAL, &sinfo) < 0)
|
|
+ if (ioctl(getrfd(), TIOCSSERIAL, &sinfo) < 0 && getuid() == 0)
|
|
log("Cannot set information for serial port.");
|
|
}
|
|
#endif
|