[php-maint] After installing php5-common 5.4.35-0+deb7u1, "sed: invalid option -- 'z'"
Ville Koskinen
vrkosk at fmail.co.uk
Wed Nov 19 09:23:24 UTC 2014
Hello,
Debian Security Advisory DSA-3074-1 from yesterday told me to update
php5-common, so I did. Unfortunately I now get regular error e-mails
from cron when executing
[ -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)
The error:
sed: invalid option -- 'z'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
[followed by sed options help]
The culprit is the sed call in /usr/lib/php5/sessionclean line 4, which
uses sed -zne. The -z option isn't supported by GNU sed on wheezy! The
Internet tells me that in newer versions, the -z option makes sed
separate output lines with nulls, which makes sense, since the next
command in the pipe is xargs -0.
The solution? Not sure, but if it isn't solved promptly, I'll have to
downgrade php5-common on the system.
Regards,
Ville Koskinen
More information about the pkg-php-maint
mailing list