Your message dated Fri, 13 Jan 2017 13:05:30 +0000
with message-id <e1cs1xu-0009dr...@fasolo.debian.org>
and subject line Bug#841781: Removed package(s) from unstable
has caused the Debian Bug report #792239,
regarding sessionclean does not support tiered session directory structure
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
792239: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792239
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: php5
Version: 5.6.9+dfsg-0+deb8u1

The new session cleanup script in Jessie (/usr/lib/php5/sessionclean) has a few limitations in it.

1. It does not support a tiered directory structure (e.g. session.save_path=2;/var/lib/php5)
2. It does not support a symlinked session directory
3. (not a limitation, but parameter warning) The find command uses the -ignore_readdir_race option after a non-option argument

I've attached a patch to fix all of these.

1. Adjust sed to remove the "N;" or "N;MODE;" prefix from session.save_path
2. Add a / to the end of $save_path to look inside the symlinked directory. It should still work with regular directories.
3. Move the -ignore_readdir_race parameter

Changed lines:

14: save_path=$(echo "$session_config" | sed -ne 's/^session\.save_path=\(.*;\)\?\(.*\)$/\2/p') 29: find -O3 "$save_path/" -depth -ignore_readdir_race -mindepth 1 -name 'sess_*' -type f -cmin "+$gc_maxlifetime" -delete
--- sessionclean.org    2015-07-12 22:09:59.104104600 -0500
+++ sessionclean        2015-07-12 20:56:30.909853124 -0500
@@ -11,7 +11,7 @@
         # Get all session variables once so we don't need to start PHP to get 
each config option
         session_config=$(php5 -c /etc/php5/${conf_dir}/php.ini -d 
"error_reporting='~E_ALL'" -r 'foreach(ini_get_all("session") as $k => $v) echo 
"$k=".$v["local_value"]."\n";')
         save_handler=$(echo "$session_config" | sed -ne 
's/^session\.save_handler=\(.*\)$/\1/p')
-        save_path=$(echo "$session_config" | sed -ne 
's/^session\.save_path=\(.*\)$/\1/p')
+        save_path=$(echo "$session_config" | sed -ne 
's/^session\.save_path=\(.*;\)\?\(.*\)$/\2/p')
         gc_maxlifetime=$(($(echo "$session_config" | sed -ne 
's/^session\.gc_maxlifetime=\(.*\)$/\1/p')/60))
 
         if [ "$save_handler" = "files" -a -d "$save_path" ]; then
@@ -26,7 +26,7 @@
 done
 ) | sort -rn -t: -k2,2 | sort -u -t: -k 1,1 | while IFS=: read -r save_path 
gc_maxlifetime; do
     # find all files older then maxlifetime and delete them
-    find -O3 "$save_path" -depth -mindepth 1 -name 'sess_*' 
-ignore_readdir_race -type f -cmin "+$gc_maxlifetime" -delete
+    find -O3 "$save_path/" -depth -ignore_readdir_race -mindepth 1 -name 
'sess_*' -type f -cmin "+$gc_maxlifetime" -delete
 done
 
 exit 0

--- End Message ---
--- Begin Message ---
Version: 5.6.26+dfsg-1+rm

Dear submitter,

as the package php5 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/841781

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmas...@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to