]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
urlfilterctrl: Fix bug#10649 - add option to remove urlfilter from fcron directories
authorAdolf Belka <adolf.belka@ipfire.org>
Tue, 26 Sep 2023 14:07:00 +0000 (16:07 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 28 Sep 2023 09:39:26 +0000 (09:39 +0000)
commit01ed9ff3219de2683b3a3e74cea6602dde3e04fb
treec108e8eb373acc734854ee1373f557e97b5d71fb
parent94845e08bc2ca9e24e208630979bdcddb84b2682
urlfilterctrl: Fix bug#10649 - add option to remove urlfilter from fcron directories

- Currently if the urlfilter update is enabled then autoupdate.pl is renamed urlfilter and
   added into either the daily, weekly or monthly fcron directoiries. If the update is
   disabled then the urlfilter update script stays in the directory and is not removed.
- This patch adds in the option of remove to the urlfilterctrl program. The first part
   of the urlfilterctrl.c code removes any existing symlinks so all that needs to be done
   for the remove option is to not add any symlinks to the fcron directories.
- Confirmed in a vm testbed that the current approach leaves the symlink in place. Installed
   the changes from this and the previous patch and confirmed that when the url update is
   disabled the symlink is removed.

Fixes: Bug#10649
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/misc-progs/urlfilterctrl.c