Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: create XDG_RUNTIME_DIR with mode 0700 #577

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Conversation

gperciva
Copy link
Member

@gperciva gperciva commented Dec 6, 2023

No description provided.

The XDG specification requires this:
    $XDG_RUNTIME_DIR defines the base directory relative to which...
    ... Its Unix access mode MUST be 0700.
    https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html

Confusingly,
    mkdir -m X -p /tmp/tarsnap-gui-test/test-blah
only applies the `-m X` to test-blah/, not tarsnap-gui-test/.  I don't
understand why POSIX specifies it as such, but at least it's clearly
defined as such in:
    https://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkdir.html
@gperciva gperciva merged commit efa30fa into master Dec 6, 2023
1 check passed
@gperciva gperciva deleted the xdg-runtime-dir branch December 6, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant