mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1650] [MERGED] fix: credential file shouldn't be world readable #1475
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1475
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/1650
Author: @eladyn
Created: 11/23/2025
Status: ✅ Merged
Merged: 12/24/2025
Merged by: @photovoltex
Base:
dev← Head:credential_file_perms📝 Commits (2)
38df9bdfix: credential file shouldn't be world readable98d73fefix whitespace📊 Changes
1 file changed (+19 additions, -8 deletions)
View changed files
📝
core/src/cache.rs(+19 -8)📄 Description
As has been raised in https://github.com/Spotifyd/spotifyd/issues/1349 some time ago, the credential files in cache should probably not be world readable, as this allows for example other users on a multi-user system to use the Spotify account of another user.
This changes the default permissions for the file and suggests changing the permissions, if the file is world readable. One could of course just change the permissions instead of asking the user to do it, but this might be a little intrusive. If you think that the permissions should also be changed on other files / directories, let me know.
Note that this only works on Unix systems, I don't know anything about how Windows handles permissions, so didn't change anything there.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.