X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=99a34c7204cf4d3f4b7f01d718f20cef84d3d1a5;hb=4cc4b9bcce74b3e7ec4fe539366b7cfc3b472c07;hp=3c7d3683e9da4fb375f373f4f4277f8aa13436ca;hpb=5a738e685bd002661276cf6938c5b74ef1ec0ccf;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 3c7d3683..99a34c72 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -238,7 +238,7 @@ static bool parse_options(int argc, char **argv) { FILE *fopenmask(const char *filename, const char *mode, mode_t perms) { mode_t mask = umask(0); perms &= ~mask; - umask(~perms); + umask(~perms & 0777); FILE *f = fopen(filename, mode); if(!f) {