]> code.ossystems Code Review - openembedded-core.git/commit
logrotate 3.7.9: Allow rotate log across filesystems
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 6 Mar 2012 17:03:11 +0000 (09:03 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 Mar 2012 19:46:45 +0000 (11:46 -0800)
commitfca0a2c597ab40d55da768dac4088234b9b0d773
treef18beaf0845e4e49a40fab418490b068baa5db21
parenta9e7131b85e1787e6f76c64d77b2ac6684c8a9c9
logrotate 3.7.9: Allow rotate log across filesystems

The logrotate can't save the log across the different filesystems since
it used the "rename(const char *oldpath, const char *newpath)" to save
the file, fix it to act as the "mv" command(first rename, if failed,
read and write) to allow save the log across the different filesystems.

* config.c: Remove the check for different filesystems
* logrotate.c: Act as the "mv" command when rotate log
* logrotate.8: Update the mannual
* logrotate.8: Fix a bug in the mannual(\f should be \fR)

[YOCTO #718]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/logrotate/logrotate-3.7.9/allow-across-different-filesystems.patch [new file with mode: 0644]
meta/recipes-extended/logrotate/logrotate_3.7.9.bb