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