[Pkg-php-commits] [php/debian-sid] CVE-2011-0441: Be more careful when removing session files (Closes: #618489)
Ondřej Surý
ondrej at sury.org
Fri Mar 18 14:56:25 UTC 2011
---
debian/php5-common.php5.cron.d | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/debian/php5-common.php5.cron.d b/debian/php5-common.php5.cron.d
index a4e73a8..f3fba39 100644
--- a/debian/php5-common.php5.cron.d
+++ b/debian/php5-common.php5.cron.d
@@ -4,4 +4,4 @@
# files, or 24 minutes if not defined. See /usr/lib/php5/maxlifetime
# Look for and purge old sessions every 30 minutes
-09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm
+09,39 * * * * root [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -depth -mindepth 1 -maxdepth 1 -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete
--
1.7.1
More information about the Pkg-php-commits
mailing list