summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2023-08-06 13:36:36 +0100
committerSimon McVittie <smcv@debian.org>2023-08-09 12:15:25 +0100
commit667572485ee3f19bfd9da5463bc7e599cdf01fda (patch)
tree51deae3e93b6b65f3bc641110dfc02ddb346cd54
parent329cfb9b33af9aeb64466cb5f3650e00904b7f65 (diff)
buildsystems: Give XDG_RUNTIME_DIR spec-compliant u=rwx,og-rwx permissions
The spec says XDG_RUNTIME_DIR is private to the user, and some API users check for this. For example, Weston prints warnings during build-time testing of GTK 4, although the tests don't actually fail. Signed-off-by: Simon McVittie <smcv@debian.org>
-rw-r--r--lib/Debian/Debhelper/Dh_Buildsystems.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Debian/Debhelper/Dh_Buildsystems.pm b/lib/Debian/Debhelper/Dh_Buildsystems.pm
index 9918969e..0e3f584d 100644
--- a/lib/Debian/Debhelper/Dh_Buildsystems.pm
+++ b/lib/Debian/Debhelper/Dh_Buildsystems.pm
@@ -296,6 +296,7 @@ sub buildsystems_do {
TMPDIR => 1,
CLEANUP => 1,
);
+ chmod(0700, $xdg_runtime_dir->dirname) or error("chmod(0700, $xdg_runtime_dir) failed: $!");
$ENV{'XDG_RUNTIME_DIR'} = $xdg_runtime_dir->dirname;
}
eval {