Line 0
Link Here
|
|
|
1 |
--- ../common/exf.c.orig 2007-11-18 16:41:42 UTC |
2 |
+++ ../common/exf.c |
3 |
@@ -392,7 +392,7 @@ postinit: |
4 |
* an error. |
5 |
*/ |
6 |
if (rcv_name == NULL && ep->refcnt == 0) { |
7 |
- if ((ep->fd = open(oname, O_RDWR)) == -1) |
8 |
+ if ((ep->fd = open(oname, O_RDONLY)) == -1) |
9 |
goto no_lock; |
10 |
|
11 |
switch (file_lock(sp, oname, &ep->fcntl_fd, ep->fd, 1)) { |