summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-03-16 20:49:51 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-03-16 20:49:51 +0000
commit6602677615921423509052dba396e29ca9f5292d (patch)
treeca71bd98ecc3ad1b785b81314683549589247393 /locks
parentf180f74bec50f29477a4acb3edeaea2fc9b4796f (diff)
downloadlibapr-6602677615921423509052dba396e29ca9f5292d.tar.gz
Fix a bug in ap_init_child_lock
Submitted by: Paul Reder git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59720 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/crossproc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/locks/unix/crossproc.c b/locks/unix/crossproc.c
index ab1ebf572..e065ed4dc 100644
--- a/locks/unix/crossproc.c
+++ b/locks/unix/crossproc.c
@@ -376,6 +376,7 @@ ap_status_t child_init_lock(struct lock_t **lock, ap_context_t *cont, char *fnam
new = (struct lock_t *)ap_palloc(cont, sizeof(struct lock_t));
+ ap_cpystrn(new->fname, fname, strlen(fname));
new->interproc = open(new->fname, O_CREAT | O_WRONLY | O_EXCL, 0600);
if (new->interproc == -1) {
destroy_inter_lock(new);