diff --git a/src/metadata.c b/src/metadata.c index b8817f6..a246627 100644 --- a/src/metadata.c +++ b/src/metadata.c @@ -364,9 +364,8 @@ metadata_program(const char *program, int normalize) metadata_free(&md); return (NULL); } - if (st.st_mode & (S_IWGRP | S_IWOTH)) { - log_error("%s: group and/or world writeable", - program); + if (st.st_mode & S_IWOTH) { + log_error("%s: world writeable", program); metadata_free(&md); return (NULL); } diff --git a/src/playlist.c b/src/playlist.c index 8c500db..9ef8342 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -273,9 +273,8 @@ playlist_program(const char *filename) playlist_free(&pl); return (NULL); } - if (st.st_mode & (S_IWGRP | S_IWOTH)) { - log_error("%s: group and/or world writeable", - filename); + if (st.st_mode & S_IWOTH) { + log_error("%s: world writeable", filename); playlist_free(&pl); return (NULL); }