diff options
author | Martin Willi <martin@strongswan.org> | 2009-05-11 17:26:13 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-05-11 17:26:13 +0200 |
commit | 4a0c97e7d468eb71739635ea6fd0f53a88f0743d (patch) | |
tree | a93e6b1847dd35420b8f1925bb61c5dd4fccc11e /src/dumm | |
parent | db879fdfac28ef005d2320d0e507c15a12cfd657 (diff) | |
download | strongswan-4a0c97e7d468eb71739635ea6fd0f53a88f0743d.tar.bz2 strongswan-4a0c97e7d468eb71739635ea6fd0f53a88f0743d.tar.xz |
also update permission in template/guest folders
some identation cleanups
Diffstat (limited to 'src/dumm')
-rw-r--r-- | src/dumm/dumm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dumm/dumm.c b/src/dumm/dumm.c index 78b61b2a1..2cb1235e1 100644 --- a/src/dumm/dumm.c +++ b/src/dumm/dumm.c @@ -28,7 +28,7 @@ #include "dumm.h" -#define PERME (S_IRWXU | S_IRWXG) +#define PERME (S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) #define GUEST_DIR "guests" #define TEMPLATE_DIR "templates" @@ -134,10 +134,10 @@ static void clear_template(private_dumm_t *this) { enumerator_t *enumerator; guest_t *guest; - + free(this->template); this->template = NULL; - + enumerator = this->guests->create_enumerator(this->guests); while (enumerator->enumerate(enumerator, (void**)&guest)) { @@ -253,7 +253,7 @@ static void destroy(private_dumm_t *this) { enumerator_t *enumerator; guest_t *guest; - + this->bridges->destroy_offset(this->bridges, offsetof(bridge_t, destroy)); enumerator = this->guests->create_enumerator(this->guests); @@ -332,11 +332,11 @@ dumm_t *dumm_create(char *dir) } else { - if (getcwd(cwd, sizeof(cwd)) == NULL) - { - free(this); - return NULL; - } + if (getcwd(cwd, sizeof(cwd)) == NULL) + { + free(this); + return NULL; + } if (dir) { if (asprintf(&this->dir, "%s/%s", cwd, dir) < 0) |