projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Extract filesystem-related functions into fs.c
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
8a4c1f3
..
1c9b6ed
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-57,6
+57,7
@@
#include "random.h"
#include "sandbox.h"
#include "watchdog.h"
#include "random.h"
#include "sandbox.h"
#include "watchdog.h"
+#include "fs.h"
/* If nonzero, display usage information and exit. */
static bool show_help = false;
/* If nonzero, display usage information and exit. */
static bool show_help = false;
@@
-415,7
+416,9
@@
static bool drop_privs(void) {
return false;
}
return false;
}
-#endif
+#endif // HAVE_WINDOWS
+
+ makedirs(DIR_CACHE | DIR_HOSTS | DIR_INVITATIONS);
return sandbox_enter();
}
return sandbox_enter();
}