aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 0dae1a92b..08a8203f5 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -536,7 +536,7 @@ playlist_append_file(const char *path, int uid, int *added_id)
if (ret < 0)
return PLAYLIST_RESULT_ERRNO;
- if (st.st_uid != (uid_t)uid)
+ if (st.st_uid != (uid_t)uid && (st.st_mode & 0444) != 0444)
/* client is not owner */
return PLAYLIST_RESULT_DENIED;