Commit Graph

66 Commits

Author SHA256 Message Date
059257d8e2 Accepting request 895803 from home:dirkmueller:Factory
- update to 3.18.1:
  * fix memory leaks on error-handling paths
  * make `renamecopy` and `copytruncate` override each other
  * improve error handling in the parser of configuration files
  * improve user experience for non-privileged users of logrotate

OBS-URL: https://build.opensuse.org/request/show/895803
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=89
2021-05-28 09:59:07 +00:00
8f3fd8e083 Accepting request 868858 from home:pmonrealgonzalez:branches:Base:System
- Update to 3.18.0:
  * Allow UIDs and GIDs to be specified numerically
  * Add support for Zstandard compressed files
  * Make delaycompress not to fail with rotate 0

OBS-URL: https://build.opensuse.org/request/show/868858
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=87
2021-02-05 15:26:29 +00:00
24e968a8a1 Accepting request 823091 from home:pmonrealgonzalez:branches:Base:System
- Update to 3.17.0:
  * lock state file to prevent parallel execution of logrotate
  * add '.bak' extension to default taboo list
  * allow to pass a home-relative path to 'include'
  * 'switch_user_permanently': skip switchback check if switched to root
  * logrotate.service: enable 'ProtectClock' to restrict setting of clock
  * delete old logs hit by 'maxage' regardless of 'dateext'

OBS-URL: https://build.opensuse.org/request/show/823091
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=85
2020-07-29 09:09:58 +00:00
f0af401319 Accepting request 794124 from home:kukuk:branches:Base:System
- Require /usr/bin/xz instead of xz to make it working with busybox

OBS-URL: https://build.opensuse.org/request/show/794124
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=83
2020-04-27 11:56:37 +00:00
Tomáš Chvátal
6d425794cd - Update to 3.16.0 bsc#1160281:
* fix compilation with gcc-10, which defaults to -fno-common (#288)
  * reduce number of open() operations on state file (#282)
  * validate user/group given to the su directive early (#276)
  * add hardening options to systemd unit file in examples (#274, #291)
  * fix crash of logrotate on invalid configuration with include (#271)
  * fix heap buffer overflow on too long logfile extension (#270)

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=81
2020-03-02 12:06:08 +00:00
Tomáš Chvátal
e8ab523601 - Update to 3.15.1:
* use correct create mode in examples/btmp (#257)
  * fix several bugs found by fuzzing (#254)
  * do not abort globbing on a broken symlink (#251)
  * rearrange logrotate.8 man page to improve readability (#248)
  * encourage admins to use the su directive in logrotate.8 man page (#236)

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=79
2020-01-08 08:29:48 +00:00
Tomáš Chvátal
28aec343a9 Accepting request 760347 from home:kukuk:branches:Base:System
x- Use systemd_ordering instead of systemd_requires

OBS-URL: https://build.opensuse.org/request/show/760347
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=77
2020-01-02 07:27:02 +00:00
Tomáš Chvátal
bc108665d4 Accepting request 691561 from home:pmonrealgonzalez:branches:Base:System
- Version update to 3.15.0:
  * timer unit: change trigger fuzz from 12h to 1h
  * service unit: only run if /var/log is mounted
  * preserve fractional part of timestamps when compressing
  * re-indent source code using spaces only
  * minage: avoid rounding issue while comparing the amount of seconds
  * never remove old log files if rotate -1 is specified
  * return non-zero exit status if a config file contains an error
  * make copytruncate work with rotate 0
  * warn user if both size and the time interval options are used
  * pass rotated log file name as the 2nd argument of the postrotate
    script when sharedscript is not enabled
  * rename logrotate-default to logrotate.conf
- Added asc file.

OBS-URL: https://build.opensuse.org/request/show/691561
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=75
2019-04-05 07:24:38 +00:00
Tomáš Chvátal
2f6b9dfde8 - Rebase the logrotate-3.13.0-systemd_add_home_env.patch to be
unified patch again

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=73
2018-09-13 08:14:15 +00:00
Tomáš Chvátal
6b41c8d45a Accepting request 634734 from home:jengelh:branches:Base:System
- Use noun phrase. Trim filler wording from description.
  Add a note that it is unrelated to journald.

OBS-URL: https://build.opensuse.org/request/show/634734
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=72
2018-09-11 07:17:52 +00:00
24e95357d0 Accepting request 634659 from home:dliedke:branches:Base:System
Version update to 3.14.0

OBS-URL: https://build.opensuse.org/request/show/634659
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=71
2018-09-10 10:15:08 +00:00
Tomáš Chvátal
17e2917049 Accepting request 614890 from home:kstreitova:branches:Base:System
- Add "Environment=HOME=/root" to logrotate.service file in order 
  to allow mariadb to rotate its logs when the database has a root
  password defined [bsc#1093617]
- Added patch:
  * logrotate-3.13.0-systemd_add_home_env.patch

OBS-URL: https://build.opensuse.org/request/show/614890
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=69
2018-06-07 10:19:19 +00:00
Tomáš Chvátal
98019583d1 Accepting request 593190 from home:kukuk:branches:Base:System
- Use %license instead of %doc [bsc#1082318]

OBS-URL: https://build.opensuse.org/request/show/593190
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=67
2018-04-03 11:51:31 +00:00
Tomáš Chvátal
c75ec88e18 Accepting request 562011 from home:pmonrealgonzalez:branches:Base:System
- Version update to 3.13.0:
  * make distribution tarballs report logrotate version properly
  * make (un)compress work even if stdin and/or stdout are closed (#154)
  * remove -s from DEFAULT_MAIL_COMMAND and improve its documenation (#152)
  * uncompress logs before mailing them even if delaycompress is enabled (#151)
  * handle unlink of a non-existing log file as a warning only (#144)
  * include compile-time options in the output of logrotate --version (#145)
  * make logrotate --version print to stdout instead of stderr (#145)
  * flush write buffers before syncing state file (#148)
  * specify (un)compress utility explicitly in tests (#137)
  * enable running tests in parallel (#132)
  * explicitly map root UID/GID to 0 on Cygwin (#133)
  * add .dpkg-bak and .dpkg-del to default tabooext list (#134)

OBS-URL: https://build.opensuse.org/request/show/562011
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=65
2018-01-06 06:57:55 +00:00
Tomáš Chvátal
23aec47039 - Version update to 3.12.3:
* Fixed accident removal of rotated files with dateext. (#118)
  * Line comments inside globs in config files are now skipped. (#109)
  * logrotate now recovers from a corrupted state file. (#45)
  * createolddir now creates old directory as unprivileged user. (#114)
  * weekly rotations are now predictable and configurable. (#93)
  * Errors in config files are no longer treated as fatal errors. (#81)
  * configure --with-default-mail-command specifies default mail command. (#100)
  * Fixed heap buffer overflow when parsing crafted config file. (#33)
  * build fixes related to -Werror (#119) and -Werror=format= (#108)
  * configure --enable-werror now controls use of the -Werror flag (#123)
  * copy and copytruncate directives now work together again
  * unlink() is no longer preceded by open() unless shred is enabled (#124)
  * compress and uncompress now take commands from $PATH, too (#122)
- By default disable werror while building

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=63
2017-07-07 09:00:26 +00:00
Tomáš Chvátal
02f452ffff - Remove aaa_base compat setting that is from 2003, we do not
support such migration anymore

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=62
2017-07-07 08:29:47 +00:00
Tomáš Chvátal
d626fcd04d x
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=60
2017-01-05 14:23:33 +00:00
Tomáš Chvátal
a570e5ba03 - Version upbdate to 3.11.0:
* Merges from distribution patchsets and small fixes around

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=59
2017-01-05 14:16:10 +00:00
Tomáš Chvátal
aa3e4cc2dd - Remove all patches merged upstream:
* logrotate-addextension.patch
  * logrotate-autoext.patch
  * logrotate-conf.patch
  * logrotate-fix-test62_with_bash-4.4.patch
  * logrotate-manpage_config_clarification.patch
  * logrotate-var-lib-misc.patch
  * logrotate-3.7.8-suse.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=57
2016-12-28 11:32:47 +00:00
Tomáš Chvátal
3cacfc6449 - Version update to 3.10.0 fate#322037:
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=55
2016-11-25 10:57:36 +00:00
Tomáš Chvátal
d174a91fcb - Fix post scriptlet condition bnc#1011120
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=53
2016-11-21 12:04:31 +00:00
Tomáš Chvátal
2f88303597 - Add patch:
* logrotate-var-lib-misc.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=51
2016-11-16 16:27:44 +00:00
Tomáš Chvátal
ca1e0ce6d9 Accepting request 440124 from home:kukuk:branches:Base:System
- Move logrotate.status to /var/lib/misc following FHS/LSB and
  making implementing read-only root filesystem much easier.
  [FATE#322036]

OBS-URL: https://build.opensuse.org/request/show/440124
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=50
2016-11-14 13:39:27 +00:00
Tomáš Chvátal
841db056ae - Version update to 3.10.0:
* Update url to point to github
- Remove upstreamed patch:
  * logrotate-3.7.8-mess_err.patch
- Rebase patches:
  * logrotate-3.7.8-suse.patch
  * logrotate-addextension.patch
  * logrotate-autoext.patch
  * logrotate-fix-test62_with_bash-4.4.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=48
2016-10-05 11:39:50 +00:00
e408d24b71 Accepting request 432966 from home:dimstar:Factory
- Add logrotate-fix-test62_with_bash-4.4.patch: Fix the test suite
  when running with bash 4.4 (gh#logrotate/logrotate#66).

OBS-URL: https://build.opensuse.org/request/show/432966
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=47
2016-10-04 11:00:37 +00:00
Vítězslav Čížek
e3491e0b97 Accepting request 313088 from home:kstreitova:branches:Base:System
- update to 3.9.1
  * 3.9.1
    - Fix off-by-one error which can lead to crash when copytruncate
      is used.
  * 3.9.0
    - Fix crash when using long dateformat. [nmerdan]
    - Add support for %H dateformat. [czchen]
    - Fix regression introduced in 3.8.9 when when rotating multiple
      logs when one of them is missing.
    - In the debug mode, do not skip the code-path which handles the
      case when the last rotation does not exist. [Sergey Vidishev]
    - Show more precise description when "log does not need rotating".
    - Add new -l option to log verbose output to file. The file is
      overwritten on every logrotate execution.
    - Allow rotation of sparse files with copytruncate.
  * update logrotate-addextension.patch
- use spec-cleaner
- remove unused PreReq tags

OBS-URL: https://build.opensuse.org/request/show/313088
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=45
2015-06-22 14:28:41 +00:00
Vítězslav Čížek
91d1979214 Accepting request 308064 from home:elvigia:branches:Base:System
- Enable Persistent timer since we are now in systemd 219.

OBS-URL: https://build.opensuse.org/request/show/308064
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=43
2015-05-20 18:59:04 +00:00
Vítězslav Čížek
4b4b26c1fb Accepting request 286929 from home:posophe:branches:Base:System
Update

OBS-URL: https://build.opensuse.org/request/show/286929
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=41
2015-02-20 12:18:45 +00:00
Tomáš Chvátal
06a1166f9a Accepting request 238782 from home:vitezslav_cizek:branches:Base:System
- temporarily remove the 'Persistent' option from logrotate.timer
  * our current systemd doesn't support it yet (bnc#884338)

OBS-URL: https://build.opensuse.org/request/show/238782
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=39
2014-07-02 09:30:13 +00:00
Stephan Kulow
0fa22a87a3 Accepting request 228918 from home:elvigia:branches:Base:System
- Also, avoid logrotate unit activation when the system is 
  on battery power.

OBS-URL: https://build.opensuse.org/request/show/228918
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=37
2014-04-04 14:49:56 +00:00
f713634cc4 Accepting request 228893 from home:elvigia:branches:Base:System
- BuildRequire systemd 197 or later.

- Migrate from cron to systemd timer units, this is overall 
  the most important package to migrate since it is one 
  of the very few base components that hard-require cron.

OBS-URL: https://build.opensuse.org/request/show/228893
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=35
2014-04-03 15:12:24 +00:00
Cristian Rodríguez
b7eabb9739 Accepting request 228751 from home:vitezslav_cizek:branches:Base:System
- return error when nomissingok is specified and the log path
  doesn't exist (bnc#871217)
  * added logrotate-fail_if_ENOENT_and_nomissingok.patch

OBS-URL: https://build.opensuse.org/request/show/228751
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=34
2014-04-03 00:23:52 +00:00
Dr. Werner Fink
a5182a2eb4 Accepting request 206599 from home:rudi_m:branches:Base:System
- enable acl support to preserve ACLs during rotation

OBS-URL: https://build.opensuse.org/request/show/206599
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=32
2013-11-13 07:50:35 +00:00
Vítězslav Čížek
6194b5c0cd Accepting request 206232 from home:rudi_m:branches:Base:System
- update to 3.8.7, fix bnc#849436
- Changelog 3.8.7:
  * Fixed --force/-f option handling together with "size" directive
    (3.8.5 regression).
  * Use "logrotate_tmp_t" context for SELinux tests and if this
    context does not exist, skip SELinux related tests.
- Changelog 3.8.6
  * Fixed memory corruption caused by rotation directory which
    does not exist with "sharedscripts" together with "prerotate"
    script.

OBS-URL: https://build.opensuse.org/request/show/206232
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=30
2013-11-11 10:55:34 +00:00
Vítězslav Čížek
2216b30975 Accepting request 195700 from home:vitezslav_cizek:branches:Base:System
- install COPYING file (bnc#817870)

OBS-URL: https://build.opensuse.org/request/show/195700
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=28
2013-08-23 12:06:43 +00:00
4a255b0af8 Accepting request 185585 from home:vitezslav_cizek:branches:Base:System
- mention in the manpage that = is an allowed separator in the
  config file (bnc#831072)
  * added logrotate-manpage_config_clarification.patch

OBS-URL: https://build.opensuse.org/request/show/185585
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=26
2013-08-02 14:50:50 +00:00
4495f5c112 Accepting request 184333 from home:vitezslav_cizek:branches:Base:System
- update to 3.8.5
  * dropped logrotate-3.7.9-compressoptions.patch (upstream)
  * refreshed other patches
  Changelog:
  - Improved rotation during daylight saving time and between timezone
    changes.
  - Fixed ACL setting problem caused by ext3 erroneously reporting ENOSYS
    instead of ENOSUP.
  - Do not continue with rotation if state file is corrupted.
  - Make logrotate.status creation atomic.
  - Allow "hourly" rotation. See manpage for more information.
  - Use "/bin/echo" in tests. Fixes tests execution in Dash.
  - Do no try to parse config files bigger than 16MB.
  - Improved manpage consistency and formatting.
  - Fix race condition between acl_set_fd() and fchmod().
  - Added --version command line option
  - Disable ACL tests if logrotate is not compiled WITH_ACL support or if 
    ACLs are not supported by the system running tests
  - Disable SELinux tests if logrotate is not compiled WITH_SELINUX support
    or if SELinux is not supported by the system running tests
  - Fixed bug which prevented skipping particular log file config
    if the config contained errors.
  - Fixed skipping of configs containing firstaction/lastaction scripts
    with '}' character in case of error before these scripts.
  - Support also 'K' unit for *size directives.
  - Added preremove option to let admin to do something with the old logs
    before they are removed by logrotate.
  - Fixed possible loop in tabooext parsing.
  - Move code to set SELinux context before compressLogFile calls to create
    compressed log files with the proper context.

OBS-URL: https://build.opensuse.org/request/show/184333
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=24
2013-07-25 15:40:16 +00:00
1faea0988c Accepting request 171009 from home:m_meister:branches:openSUSE:Factory
- Added url as source.
  Please see http://en.opensuse.org/SourceUrls

OBS-URL: https://build.opensuse.org/request/show/171009
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=22
2013-04-17 08:06:58 +00:00
db8b0952bc Accepting request 86412 from home:uli_suse:branches:Base:System
- cross-build fix: use %__cc macro

OBS-URL: https://build.opensuse.org/request/show/86412
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=20
2011-10-04 08:33:38 +00:00
OBS User buildservice-autocommit
8cfb015daa Updating link to change in openSUSE:Factory/logrotate revision 30.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=57cbc97bb73d6ecb684f0029d073a5d3
2011-09-13 10:37:58 +00:00
Michal Vyskocil
a7ebe2d3f3 Accepting request 81574 from home:vitezslav_cizek:branches:Base:System
- update to 3.8.1
- dropped CVE patches as they were merged to upstream
- changelog
  - fixed 1 memory leak in prerotateSingleLog
  - do not redirect logrotate errors to /dev/null in cron script
  - fixed "size" directive parsing
  - handle situation when acl_get_fd is supported, but acl_set_fd is not
  - added "maxsize" directive (see man page)
  - added "dateyesterday" option (see man page)
  - fixed crash when config file had exactly 4096*N bytes
  - added WITH_ACL make option to link against -lacl and preserve ACLs
    during rotation
  - added "su" option to define user/group for rotation. Logrotate now
    skips directories which are world writable or writable by group
    which is not "root" unless "su" directive is used.
  - fixed CVE-2011-1098: race condition by creation of new files
  - fixed possible shell injection when using "shred" directive (CVE-2011-1154)
  - fixed escaping of file names within 'write state' action (CVE-2011-1155)
  - better 'size' directive description
  - fixed possible buffer-overflow when reading config files

OBS-URL: https://build.opensuse.org/request/show/81574
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=18
2011-09-13 09:24:51 +00:00
OBS User buildservice-autocommit
0ee507bd2a Updating link to change in openSUSE:Factory/logrotate revision 28.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=914f6e536f758cb8b13f87b5e15e0f95
2011-09-07 15:55:32 +00:00
Cristian Rodríguez
b359c29be2 Accepting request 81344 from home:vitezslav_cizek:branches:Base:System
- allow whitespace separated options in compressoptions (bnc#711780)

OBS-URL: https://build.opensuse.org/request/show/81344
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=16
2011-09-07 14:34:08 +00:00
OBS User buildservice-autocommit
51858f8853 Updating link to change in openSUSE:Factory/logrotate revision 26.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=eef1c4649c5aad3b1efbd03d11476a20
2011-08-15 07:41:19 +00:00
Cristian Rodríguez
ded26fb957 Accepting request 78660 from home:jengelh:dev
- Change compression scheme to xz. This should give smaller resulting filesizes.

OBS-URL: https://build.opensuse.org/request/show/78660
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=14
2011-08-12 19:00:30 +00:00
OBS User buildservice-autocommit
6691855738 Updating link to change in openSUSE:Factory/logrotate revision 24.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=1641b2e026bbbe01d448bd2efaae1c49
2011-05-19 07:46:17 +00:00
Cristian Rodríguez
ad349c46b4 Accepting request 70307 from home:puzel:branches:Base:System
- add logrotate-CVE-2011-1098.patch (bnc#677336)
- add logrotate-shred-CVE-2011-1154.patch (bnc#679661)
- add logrotate-CVE-2011-1155.patch (bnc#679662)

OBS-URL: https://build.opensuse.org/request/show/70307
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=12
2011-05-18 17:37:01 +00:00
Cristian Rodríguez
9ccc9ed3e5 Accepting request 53329 from home:lnussel:fscaps
OBS-URL: https://build.opensuse.org/request/show/53329
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=10
2010-11-18 12:49:52 +00:00
OBS User buildservice-autocommit
4aeeca5915 Updating link to change in openSUSE:Factory/logrotate revision 19.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=5a26a0fe1feb8e0da19cc9746b16a93a
2010-09-17 19:25:24 +00:00
OBS User autobuild
f590535e00 Accepting request 48132 from Base:System
checked in (request 48132)

OBS-URL: https://build.opensuse.org/request/show/48132
OBS-URL: https://build.opensuse.org/package/show/Base:System/logrotate?expand=0&rev=9
2010-09-17 19:25:23 +00:00