Version: KTorrent 3.0.2 (using KDE 4.0.5) Installed from: SuSE RPMs (Initially reported as https://bugzilla.novell.com/show_bug.cgi?id=406634) Ktorrent asks the user something like "do you really want to overwrite the old log while logrotation?" OK, it doesn't ask this way, but it displays the normal "overwrite file?" dialog saying that ~/.kde4/share/apps/ktorrent/log-1 already exists and asks if I want to overwrite it with ~/.kde4/share/apps/ktorrent/log. This behaviour is annoying. Logrotation should be done silently. Screenshot: https://bugzilla.novell.com/attachment.cgi?id=226144
This is a bug in KIO : when moving the files, ktorrent will use KIO::file_move and will pass the KIO::Overwrite flag which should make sure this dialog is never shown. (see libbtcore/util/autorotatelogjob.cpp in the ktorrent code)
SVN commit 845118 by dfaure: unit test for KIO::file_move with KIO::Overwrite, passes CCBUG: 168874 I think there's no kio bug; please check that you are passing -1 as the third argument and the flags in the fourth argument. (Yes I know, that API could be better -- too late) M +14 -0 jobtest.cpp M +2 -0 jobtest.h WebSVN link: http://websvn.kde.org/?view=rev&revision=845118
see comment #2.
Logrotation is done silently and has always been done silently