Commit 060ff719073b0108d7e658e16081699eadc5f70d

Con Kolivas 2012-02-03T15:43:07

Merge pull request #102 from luke-jr/bugfix_bitforce_linux_rw 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 619dcbf..4081b71 100644
--- a/bitforce.c
+++ b/bitforce.c
@@ -46,7 +46,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