1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05:00

Relax "group writeable!" error for compatibility w/ recent Linux

This commit is contained in:
Moritz Grimm 2015-05-28 08:36:25 +02:00
parent 6422607b1f
commit 2b004da593
2 changed files with 4 additions and 6 deletions

View File

@ -364,9 +364,8 @@ metadata_program(const char *program, int normalize)
metadata_free(&md); metadata_free(&md);
return (NULL); return (NULL);
} }
if (st.st_mode & (S_IWGRP | S_IWOTH)) { if (st.st_mode & S_IWOTH) {
log_error("%s: group and/or world writeable", log_error("%s: world writeable", program);
program);
metadata_free(&md); metadata_free(&md);
return (NULL); return (NULL);
} }

View File

@ -273,9 +273,8 @@ playlist_program(const char *filename)
playlist_free(&pl); playlist_free(&pl);
return (NULL); return (NULL);
} }
if (st.st_mode & (S_IWGRP | S_IWOTH)) { if (st.st_mode & S_IWOTH) {
log_error("%s: group and/or world writeable", log_error("%s: world writeable", filename);
filename);
playlist_free(&pl); playlist_free(&pl);
return (NULL); return (NULL);
} }