From: Roy Marples Date: Fri, 3 Jul 2020 10:41:23 +0000 (+0100) Subject: Make DBDIR permissions same as the files it creates X-Git-Tag: v9.1.4^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e12069642d55185c2c5d0edbd7f94e4c7dec4bc8;p=thirdparty%2Fdhcpcd.git Make DBDIR permissions same as the files it creates --- diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 8c4b95e2..ee585aa4 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -2186,7 +2186,7 @@ printpidfile: if (!(ctx.options & DHCPCD_TEST)) { /* Ensure we have the needed directories */ - if (mkdir(DBDIR, 0755) == -1 && errno != EEXIST) + if (mkdir(DBDIR, 0750) == -1 && errno != EEXIST) logerr("%s: mkdir `%s'", __func__, DBDIR); if (mkdir(RUNDIR, 0755) == -1 && errno != EEXIST) logerr("%s: mkdir `%s'", __func__, RUNDIR);