Skip to content

Commit 4cc2d6c

Browse files
author
user
committed
Fixed WD compilation on Ububntu: added 3rd argument to 'open' function
1 parent 83eb363 commit 4cc2d6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webdriver/extension_qt/uinput_manager.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bool UInputManager::registerUinputDevice()
3939
{
4040
struct uinput_user_dev uidev;
4141

42-
_deviceDescriptor = open("/dev/uinput", O_WRONLY | O_NONBLOCK | O_CREAT | O_NDELAY);
42+
_deviceDescriptor = open("/dev/uinput", O_WRONLY | O_NONBLOCK | O_CREAT | O_NDELAY, S_IREAD | S_IWRITE);
4343
_logger->Log(kInfoLogLevel, std::string("#### Device descriptor: ") + QString::number(_deviceDescriptor).toStdString());
4444

4545
if (0 > _deviceDescriptor)

0 commit comments

Comments
 (0)