Commit 2f903b5d777b71502fde777bbf8cf62ec57876dd

Luke Dashjr 2012-02-03T18:21:50

Bugfix: Need to open BitForce tty for read-write

1
2
3
4
5
6
7
8
9
10
11
12
13
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