src/core/automount: use DirectoryMode when calling mkdir -p
authorDan Streetman <ddstreet@canonical.com>
Sun, 29 Sep 2019 21:16:55 +0000 (17:16 -0400)
committerMichael Biebl <biebl@debian.org>
Fri, 15 Nov 2019 21:01:17 +0000 (21:01 +0000)
commit8f5e6b1611864748b4dfd25c6c04ffa3e890b63c
treee5dfb32923f01a600d43c5202e6ed63efe24dac9
parentb2a0b4d1b33722a4c971beb9f68c054fd72b8e9c
src/core/automount: use DirectoryMode when calling mkdir -p

mkdir -p is called both when setting up the autofs mount, as well
as after being notified that the real mount unit should be called.
However the first mkdir -p is hardcoded with 0555, while the second
uses the value specified to DirectoryMode in the automount unit; the
second mkdir -p is only needed when called from coldplug, so under
normal operation the dirs are incorrectly created with mode 0555.

This replaces the hardcoded 0555 mode with the value of DirectoryMode.

Closes #13683.

(cherry picked from commit 8084dcb9d759e93669127f200bf5ca755432b96e)
(cherry picked from commit f406a691a7229628781686dfce4c8e276e1d46e3)

Gbp-Pq: Name src-core-automount-use-DirectoryMode-when-calling-mkdir-p.patch
src/core/automount.c