Bug#927113: wrong /tmp permissions when symlinking /tmp to /run/tmp
Serge Belyshev
belyshev at depni.sinp.msu.ru
Mon Apr 15 08:30:51 BST 2019
Package: initscripts
Version: 2.93-8
Second (part of the) issue described in #915671, namely, wrong /tmp
permissions when it is symlinked to a non-existent location was not
previously fixed.
Not that I care very much about this feature, but for consistency it
should be either fixed or removed.
The possible simple fix is the same as before:
diff --git a/debian/src/initscripts/lib/init/mount-functions.sh b/debian/src/initscripts/lib/init/mount-functions.sh
index e453f6a8..cd09883f 100644
--- a/debian/src/initscripts/lib/init/mount-functions.sh
+++ b/debian/src/initscripts/lib/init/mount-functions.sh
@@ -627,7 +627,7 @@ mount_tmp ()
# If /tmp is a symlink, make sure the linked-to directory exists.
if [ -L /tmp ] && [ ! -d /tmp ]; then
TMPPATH="$(readlink /tmp)"
- mkdir -p --mode=755 "$TMPPATH"
+ mkdir -p --mode="$TMP_MODE" "$TMPPATH"
[ -x /sbin/restorecon ] && /sbin/restorecon "$TMPPATH"
fi
More information about the Debian-init-diversity
mailing list