aboutsummaryrefslogtreecommitdiffstats
path: root/src/dumm/guest.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2008-08-28 08:05:07 +0000
committerTobias Brunner <tobias@strongswan.org>2008-08-28 08:05:07 +0000
commit8bbc7ca71034db65bf40f656643459d81a8a1cd0 (patch)
tree6495cfc503f4fda355905f27537abcce8de7ca73 /src/dumm/guest.c
parent6c20579a43a73916574f887bf6dc67bc122c0c65 (diff)
downloadstrongswan-8bbc7ca71034db65bf40f656643459d81a8a1cd0.tar.bz2
strongswan-8bbc7ca71034db65bf40f656643459d81a8a1cd0.tar.xz
* allow to load templates from arbitrary places
* changed implementation of guest?/iface?
Diffstat (limited to 'src/dumm/guest.c')
-rw-r--r--src/dumm/guest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumm/guest.c b/src/dumm/guest.c
index bf0d88dde..53e61692c 100644
--- a/src/dumm/guest.c
+++ b/src/dumm/guest.c
@@ -311,7 +311,7 @@ static bool load_template(private_guest_t *this, char *path)
}
if (access(dir, F_OK) != 0)
{
- if (mkdir(dir, PERME) != 0)
+ if (!mkdir_p(dir, PERME))
{
DBG1("creating overlay for guest '%s' failed: %m", this->name);
return FALSE;