From 74846a25bb1d513cad0f3e3c849fd63b04074654 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 23 Dec 2015 11:30:36 +0100 Subject: [PATCH 1/2] Fix home RecycleBin purge by using mtime instead of atime --- root/etc/cron.daily/purge-homes-recycle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/cron.daily/purge-homes-recycle b/root/etc/cron.daily/purge-homes-recycle index ee6c992..8d25df0 100644 --- a/root/etc/cron.daily/purge-homes-recycle +++ b/root/etc/cron.daily/purge-homes-recycle @@ -46,8 +46,8 @@ foreach my $user ($a->get_all_by_prop(type=>'user')){ sub remove{ # Remove files with last modification older than $retention if ( -f ){ - my $atime = stat($_)->atime; - (time() - $atime > $retention) && unlink($_); + my $mtime = stat($_)->mtime; + (time() - $mtime > $retention) && unlink($_); } # Remove empty directories elsif ( -d ){ From a4f84cd38d24650818868336e67797e5adac8656 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 23 Dec 2015 11:31:39 +0100 Subject: [PATCH 2/2] Spec file update --- ipasserelle-base.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ipasserelle-base.spec b/ipasserelle-base.spec index 9618a91..8e93b9f 100644 --- a/ipasserelle-base.spec +++ b/ipasserelle-base.spec @@ -1,4 +1,4 @@ -%define version 0.2.53 +%define version 0.2.54 %define release 1 %define name ipasserelle-base @@ -48,6 +48,9 @@ Based on SMEServer, iPasserelle is a specially configured SME Server, with some additionnal modules %changelog +* Wed Dec 23 2015 Daniel Berteaud 0.2.54-1 +- FIx home RecycleBin purge by using mtime instead of atime + * Fri Dec 4 2015 Daniel Berteaud 0.2.53-1 - Define netfs service in the DB