projects
/
platform
/
upstream
/
libatasmart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02aa7a8
)
open the disk device in O_RDONLY, let's see how compatible that is
author
Lennart Poettering
<lennart@poettering.net>
Fri, 3 Apr 2009 17:02:03 +0000
(19:02 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 3 Apr 2009 17:02:03 +0000
(19:02 +0200)
atasmart.c
patch
|
blob
|
history
diff --git
a/atasmart.c
b/atasmart.c
index
08fb3cd
..
96653f5
100644
(file)
--- 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_RD
WR
|O_NOCTTY)) < 0) {
+ if ((d->fd = open(name, O_RD
ONLY
|O_NOCTTY)) < 0) {
ret = d->fd;
goto fail;
}