diff options
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c index f46ce882..46faf643 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -547,8 +547,8 @@ bool load_main_config(const char *file, bool is_active) { | |||
547 | list_qsort(secconfigs, qstrcmp); | 547 | list_qsort(secconfigs, qstrcmp); |
548 | for (int i = 0; i < secconfigs->length; ++i) { | 548 | for (int i = 0; i < secconfigs->length; ++i) { |
549 | char *_path = secconfigs->items[i]; | 549 | char *_path = secconfigs->items[i]; |
550 | if (stat(_path, &s) || s.st_uid != 0 || s.st_gid != 0 || (s.st_mode & 0777) != 0644) { | 550 | if (stat(_path, &s) || s.st_uid != 0 || s.st_gid != 0 || (((s.st_mode & 0777) != 0644) && (s.st_mode & 0777) != 0444)) { |
551 | sway_log(L_ERROR, "Refusing to load %s - it must be owned by root and mode 644", _path); | 551 | sway_log(L_ERROR, "Refusing to load %s - it must be owned by root and mode 644 or 444", _path); |
552 | success = false; | 552 | success = false; |
553 | } else { | 553 | } else { |
554 | success = success && load_config(_path, config); | 554 | success = success && load_config(_path, config); |