File wvstreams-wvmodem-iotcl.patch of Package wvstreams

--- streams/wvmodem.cc
+++ streams/wvmodem.cc
@@ -205,7 +205,7 @@
 	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
openSUSE Build Service is sponsored by