also update permission in template/guest folders
some identation cleanups
This commit is contained in:
+6
-6
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user