Skip to content

Commit

Permalink
modify permissions on /tmp/g13-0 so all users can write it when g13d is
Browse files Browse the repository at this point in the history
run as root ( "sudo g13d" )
  • Loading branch information
james-fowler committed Dec 4, 2015
1 parent a98df37 commit 9b651ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions g13.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ void g13_write_lcd(libusb_context *ctx, libusb_device_handle *handle, unsigned c
cerr << "Error when transfering image: " << error << ", " << bytes_written << " bytes written" << endl;
}
int g13_create_fifo(g13_keypad *g13) {

// mkfifo(g13->fifo_name(), 0777); - didn't work
mkfifo(g13->fifo_name(), 0666);
chmod( g13->fifo_name(), 0777 );

return open(g13->fifo_name(), O_RDWR | O_NONBLOCK);
}
int g13_create_uinput(g13_keypad *g13) {
Expand Down

0 comments on commit 9b651ac

Please sign in to comment.