From ae3e7bcff5a1d5cecc1c9c2d9e5b5b56ba84f353 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 3 Apr 2009 19:02:03 +0200 Subject: open the disk device in O_RDONLY, let's see how compatible that is --- atasmart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit