summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authormanoj <manoj@13f79535-47bb-0310-9956-ffa450edef68>1999-11-01 03:58:13 +0000
committermanoj <manoj@13f79535-47bb-0310-9956-ffa450edef68>1999-11-01 03:58:13 +0000
commit089addc51b617f16865006736d8b3611d2c13062 (patch)
treef02d235bb00a888be16a284295585a8556604d24 /file_io
parentc7180028187ff985535c50ba0acda372dc6528e2 (diff)
downloadlibapr-089addc51b617f16865006736d8b3611d2c13062.tar.gz
Fix a thinko I made in the last commit.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59431 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/unix/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file_io/unix/open.c b/file_io/unix/open.c
index b52b10f26..b9b631344 100644
--- a/file_io/unix/open.c
+++ b/file_io/unix/open.c
@@ -125,7 +125,7 @@ ap_status_t ap_open(struct file_t **new, const char *fname, ap_int32_t flag, ap
oflags = O_RDONLY;
}
else if (flag & APR_WRITE) {
- buf_oflags = ap_pstrdup(cont, "r");
+ buf_oflags = ap_pstrdup(cont, "w");
oflags = O_WRONLY;
}
else {