diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-03 19:02:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-04-03 19:02:03 +0200 |
commit | ae3e7bcff5a1d5cecc1c9c2d9e5b5b56ba84f353 (patch) | |
tree | 37673c7c544ace91b50a561e0a1d4b28a3506df0 /atasmart.c | |
parent | 02aa7a81eb7f2324eb639631ac837e685137036a (diff) |
open the disk device in O_RDONLY, let's see how compatible that is
Diffstat (limited to 'atasmart.c')
-rw-r--r-- | atasmart.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |