After an update to php5-common this night, cron reports a sed error "invalid option -- 'z'".

This problem has also been reported on the Debian mailing list.

What should I do, until the problem is resolved through another update, to fix this issue in the meantime?

I fear that messing with the cron entry, that the package created, I could cause the next update to fail.

  • 4
    There's another update released (at least in Debian Wheezy) since this morning(!). Fixes it. – artfulrobot Nov 19 '14 at 13:47
  • 1
    @artfulrobot: Ah, indeed, there's a 5.4.35-0+deb7u2. I just loaded it. – Der Hochstapler Nov 19 '14 at 13:53

As @artfulrobot pointed out in his comment, 5.4.35-0+deb7u2 was released, which fixes the issue. After installing it, everything went back to normal.

| improve this answer | |

Maybe try the old statement in /usr/lib/php5/sessionclean?

$ [ -x /usr/bin/lsof ] && /usr/bin/lsof -w -l +d "${1}" -F0 | \
    sed -zne "s/^n//p" | xargs -0i echo touch -c -h "'{}'"
$ [ -x /usr/bin/lsof ] && /usr/bin/lsof -w -l +d "${1}" | \
    awk -- '{ if (NR > 1) { print $9; } }' | xargs -i touch -c {}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.