Browse Source

Merge pull request #102 from luke-jr/bugfix_bitforce_linux_rw

Bugfix: Need to open BitForce tty for read-write
Con Kolivas 14 years ago
parent
commit
060ff71907
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bitforce.c

+ 1 - 1
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