View Issue Details

IDProjectCategoryView StatusLast Update
0001340Blogpublic2017-03-06 21:14
ReporterMartinGummi Assigned Toegal  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformDefaultOSanyOS Versionany
Summary0001340: script with syntax errors after php update from debian
Description/usr/lib/php5/sessionclean

looks like an invalid option of sed

script before update
====================
# first find all used files and touch them (hope it's not massive amount of files)
[ -x /usr/bin/lsof ] && /usr/bin/lsof -w -l +d "${1}" | awk -- '{ if (NR > 1) { print $9; } }' | xargs -i touch -c {}

# find all files older then maxlifetime
find "${1}" -depth -mindepth 1 -maxdepth 1 -ignore_readdir_race -type f -cmin "+${2}" -delete

script after update
===================
#!/bin/sh

# first find all used files and touch them (hope it's not massive amount of files)
[ -x /usr/bin/lsof ] && /usr/bin/lsof -w -l +d "${1}" -F0 | sed -zne "s/^n//p" | xargs -0i echo touch -c -h "'{}'"

# find all files older then maxlifetime
find "${1}" -depth -mindepth 1 -maxdepth 1 -ignore_readdir_race -type f -cmin "+${2}" -delete
Steps To Reproduce[ -x /usr/lib/php5/maxlifetime ] && [ -x /usr/lib/php5/sessionclean ] && [ -d /var/lib/php5 ] && /usr/lib/php5/sessionclean /var/lib/php5 $(/usr/lib/php5/maxlifetime)
TagsNo tags attached.

Activities

egal

2017-03-06 21:14

administrator   ~0005538

Script was updated by a later debian update, issue does not exist anymore

Issue History

Date Modified Username Field Change
2014-11-19 00:50 MartinGummi New Issue
2014-11-19 01:11 MartinGummi Description Updated
2014-11-19 01:11 MartinGummi Steps to Reproduce Updated
2017-03-06 21:14 egal Note Added: 0005538
2017-03-06 21:14 egal Status new => closed
2017-03-06 21:14 egal Assigned To => egal
2017-03-06 21:14 egal Resolution open => fixed