projects
/
multipath-tools
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(lib)mpathpersist: use O_RDONLY file descriptors
[multipath-tools/.git]
/
mpathpersist
/
main.c
diff --git
a/mpathpersist/main.c
b/mpathpersist/main.c
index
0e4d3f2
..
10cba45
100644
(file)
--- a/
mpathpersist/main.c
+++ b/
mpathpersist/main.c
@@
-384,7
+384,7
@@
int main (int argc, char * argv[])
}
/* open device */
- if ((fd = open (device_name, O_
WR
ONLY)) < 0)
+ if ((fd = open (device_name, O_
RD
ONLY)) < 0)
{
fprintf (stderr, "%s: error opening file (rw) fd=%d\n",
device_name, fd);