summaryrefslogtreecommitdiffstats
path: root/atasmart.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-03 19:02:03 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-03 19:02:03 +0200
commitae3e7bcff5a1d5cecc1c9c2d9e5b5b56ba84f353 (patch)
tree37673c7c544ace91b50a561e0a1d4b28a3506df0 /atasmart.c
parent02aa7a81eb7f2324eb639631ac837e685137036a (diff)
open the disk device in O_RDONLY, let's see how compatible that is
Diffstat (limited to 'atasmart.c')
-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;
}