bzip2: change to new library paths
[unleashed-userland.git] / components / logrotate / patches / 05.logrotate.c.patch
blob814a761f731cf9aefc7e7b735dfef0b945c38855
1 /var/adm is owned by root:sys and has 775 permissions
2 --- logrotate-r3-9-1/logrotate.c.1 2015-09-21 17:58:21.950752313 +0300
3 +++ logrotate-r3-9-1/logrotate.c 2015-09-21 18:00:20.370131156 +0300
4 @@ -999,7 +999,7 @@
5 return 0;
7 /* Don't rotate in directories writable by others or group which is not "root" */
8 - if ((sb.st_gid != 0 && sb.st_mode & S_IWGRP) || sb.st_mode & S_IWOTH) {
9 + if ((sb.st_gid != 0 && sb.st_gid != 3 && sb.st_mode & S_IWGRP) || sb.st_mode & S_IWOTH) {
10 message(MESS_ERROR, "skipping \"%s\" because parent directory has insecure permissions"
11 " (It's world writable or writable by group which is not \"root\")"
12 " Set \"su\" directive in config file to tell logrotate which user/group"