diff options
author | Simon McVittie <smcv@debian.org> | 2023-08-06 13:36:36 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2023-08-09 12:15:25 +0100 |
commit | 667572485ee3f19bfd9da5463bc7e599cdf01fda (patch) | |
tree | 51deae3e93b6b65f3bc641110dfc02ddb346cd54 | |
parent | 329cfb9b33af9aeb64466cb5f3650e00904b7f65 (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.pm | 1 |
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 { |