Use umask() to set file and UNIX socket permissions without race conditions.
[tinc] / src / tincctl.h
index aa840ce..920b5a2 100644 (file)
@@ -48,6 +48,7 @@ extern bool connect_tincd(bool verbose);
 extern bool sendline(int fd, char *format, ...);
 extern bool recvline(int fd, char *line, size_t len);
 extern int check_port(char *name);
+extern FILE *fopenmask(const char *filename, const char *mode, mode_t perms);
 
 #endif