summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--atasmart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atasmart.c b/atasmart.c
index 08fb3cd..96653f5 100644
--- a/atasmart.c
+++ b/atasmart.c
@@ -1917,7 +1917,7 @@ int sk_disk_open(const char *name, SkDisk **_d) {
goto fail;
}
- if ((d->fd = open(name, O_RDWR|O_NOCTTY)) < 0) {
+ if ((d->fd = open(name, O_RDONLY|O_NOCTTY)) < 0) {
ret = d->fd;
goto fail;
}