]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Make DBDIR permissions same as the files it creates v9.1.4
authorRoy Marples <roy@marples.name>
Fri, 3 Jul 2020 10:41:23 +0000 (11:41 +0100)
committerRoy Marples <roy@marples.name>
Fri, 3 Jul 2020 10:41:23 +0000 (11:41 +0100)
src/dhcpcd.c

index 8c4b95e25bb9e67a9f64fdc972234185ef442b51..ee585aa48066b996edc9973120f82ebe0bef5a9d 100644 (file)
@@ -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);