also update permission in template/guest folders

some identation cleanups
This commit is contained in:
Martin Willi
2009-05-11 17:26:13 +02:00
parent db879fdfac
commit 4a0c97e7d4
+6 -6
View File
@@ -28,7 +28,7 @@
#include "dumm.h" #include "dumm.h"
#define PERME (S_IRWXU | S_IRWXG) #define PERME (S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)
#define GUEST_DIR "guests" #define GUEST_DIR "guests"
#define TEMPLATE_DIR "templates" #define TEMPLATE_DIR "templates"
@@ -332,11 +332,11 @@ dumm_t *dumm_create(char *dir)
} }
else else
{ {
if (getcwd(cwd, sizeof(cwd)) == NULL) if (getcwd(cwd, sizeof(cwd)) == NULL)
{ {
free(this); free(this);
return NULL; return NULL;
} }
if (dir) if (dir)
{ {
if (asprintf(&this->dir, "%s/%s", cwd, dir) < 0) if (asprintf(&this->dir, "%s/%s", cwd, dir) < 0)