output of asterisk logger-reload contains NUL bytes

Bug #133446 reported by Martin Emrich
4
Affects Status Importance Assigned to Milestone
asterisk (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: asterisk

Package: asterisk-classic 1:1.2.7.1.dfsg-2ubuntu3.4
on Dapper i386

Hi!

"/etc/init.d/asterisk logger-reload" prints out NUL bytes before each line:

^M == Parsing '/etc/asterisk/logger.conf': Found
^@Asterisk Event Logger restarted
^@Asterisk Queue Logger restarted
^@Verbosity is at least 4

This script is called by logrotate, and logrotate's output is in turn sent via mail by cron. So the mail from cron still contains the NUL bytes.
When exim tries to deliver the report to my mailbox on cyrus, I get this in the mail log:

1IMcOL-0001Tq-JL ** <email address hidden> <email address hidden> R=local_user T=local_cyrus_delivery: LMTP error after end of data: 554 5.6.0 Message contains NUL characters

I don't know which package is to blame (asterisk,logrotate,cron,exim4,cyrus), so I'll start at the source...

Maybe you could add a "| sed -e 's/[\x0\xD]//igm'" in the initscript...

Ciao

Martin

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta or later?

Changed in asterisk:
status: New → Incomplete
Revision history for this message
Martin Emrich (emme) wrote :

The package "asterisk-classic" is no longer part of 8.04, and on hardy, "/etc/init.d/asterisk logger-reload" produces no output at all. So I assume it is fixed at least since hardy.

Ciao

Martin

Revision history for this message
Dimitrios Symeonidis (azimout) wrote :

package no longer in ubuntu repositories, closing as won't fix

Changed in asterisk (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.