diff options
| author | Roy Marples <roy@marples.name> | 2020-07-03 11:41:23 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-07-03 11:41:23 +0100 |
| commit | e12069642d55185c2c5d0edbd7f94e4c7dec4bc8 (patch) | |
| tree | 4e990140dc6b5e34cca49b3cadb634271a3a023a | |
| parent | b2e79f9e58d7957c62460a0aa0d8d337412a1099 (diff) | |
| download | dhcpcd-e12069642d55185c2c5d0edbd7f94e4c7dec4bc8.tar.xz | |
Make DBDIR permissions same as the files it createsdhcpcd-9.1.4
| -rw-r--r-- | src/dhcpcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
