diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-16 20:49:51 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-03-16 20:49:51 +0000 |
commit | 6602677615921423509052dba396e29ca9f5292d (patch) | |
tree | ca71bd98ecc3ad1b785b81314683549589247393 /locks | |
parent | f180f74bec50f29477a4acb3edeaea2fc9b4796f (diff) | |
download | libapr-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.c | 1 |
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); |