Bugfix: Need to open BitForce tty for read-write
diff --git a/bitforce.c b/bitforce.c
index 63b7c89..4a3eaee 100644
--- a/bitforce.c
+++ b/bitforce.c
@@ -41,7 +41,7 @@ static int BFopen(const char *devpath)
static int BFopen(const char *devpath)
{
- return open(devpath, O_CLOEXEC | O_NOCTTY);
+ return open(devpath, O_RDWR | O_CLOEXEC | O_NOCTTY);
}
#endif