summaryrefslogtreecommitdiffstats
path: root/src/openvpn/ps.c
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-02-29 22:12:19 +0200
committerDavid Sommerseth <davids@redhat.com>2012-03-24 00:14:14 +0100
commit14a131ac1cfc95e5ba2518ff887d04c034aecc53 (patch)
tree20274d65fceef494e14f3ac0c5be0171d631dfb8 /src/openvpn/ps.c
parent72c7b12cb65cee69ea129cc520b26dcc64977a17 (diff)
downloadopenvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.tar.gz
openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.tar.xz
openvpn-14a131ac1cfc95e5ba2518ff887d04c034aecc53.zip
build: move wrappers into platform module
+ Some fixups within the platform.c functions. - need to check environment set on Windows. Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/openvpn/ps.c')
-rw-r--r--src/openvpn/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvpn/ps.c b/src/openvpn/ps.c
index a4e50e8..5d056ee 100644
--- a/src/openvpn/ps.c
+++ b/src/openvpn/ps.c
@@ -337,7 +337,7 @@ journal_add (const char *journal_dir, struct proxy_connection *pc, struct proxy_
check_malloc_return (jfn);
openvpn_snprintf (jfn, fnlen, "%s/%s", journal_dir, t);
dmsg (D_PS_PROXY_DEBUG, "PORT SHARE PROXY: client origin %s -> %s", jfn, f);
- fd = openvpn_open (jfn, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR | S_IRGRP);
+ fd = platform_open (jfn, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR | S_IWUSR | S_IRGRP);
if (fd != -1)
{
write(fd, f, strlen(f));