[php-maint] Bug#827370: Bug#827370: php5-common: mail clutter from sessionclean cronjob

Daniel Reichelt debian at nachtgeist.net
Wed Jun 15 15:52:27 UTC 2016

> could you please apply this patch:

Thanks Ondrej. I'd already tried s.th. similar in the meantime, and, as
you presumed as well, this already ran into another race, causing mail

So, how about a different approach and simply filter those messages:

I'd deem just appending "2>/dev/null" to that find command too crude, as
it would possibly hide other, "real" errors. So I diverted find's
STDERR, grep'ping -v just those "No such file or directory" messages and
(re-diverting to STDERR) let the rest pass.

Since the process substition I used is a bashism, the attached patch
also changes the shebang to bash.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: sessionclean.diff
Type: text/x-patch
Size: 784 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20160615/d4b75e72/attachment-0001.bin>

More information about the pkg-php-maint mailing list