]> git.meshlink.io Git - meshlink/blobdiff - src/tincctl.h
Use umask() to set file and UNIX socket permissions without race conditions.
[meshlink] / src / tincctl.h
index aa840cec3d01e11a9d153f700eb71e1235988ccb..920b5a20b21b0ddf1ff191ae384d4cda17330f4a 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