Set sticky bit on /var/tmp as well (matching perms in base-files)
[live-boot-grml.git] / components / 9990-overlay.sh
index eb57d4d..8350502 100755 (executable)
@@ -310,6 +310,12 @@ setup_unionfs ()
                chmod 1777 "${rootmnt}"/tmp
        fi
 
+       # Correct the permission of /var/tmp:
+       if [ -d "${rootmnt}/var/tmp" ]
+       then
+               chmod 1777 "${rootmnt}"/var/tmp
+       fi
+
        # Adding custom persistence
        if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ]
        then