CAcert Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001340Blogpublic2014-11-19 00:502017-03-06 21:14
ReporterMartinGummi 
Assigned Todastrath 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
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.
Attached Files

- Relationships

-  Notes
(0005538)
dastrath (administrator)
2017-03-06 21:14

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 View Revisions
2014-11-19 01:11 MartinGummi Steps to Reproduce Updated View Revisions
2017-03-06 21:14 dastrath Note Added: 0005538
2017-03-06 21:14 dastrath Status new => closed
2017-03-06 21:14 dastrath Assigned To => dastrath
2017-03-06 21:14 dastrath Resolution open => fixed


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker