hostnames from avahi-daemon.conf get double-escaped

Bug #331725 reported by David D Miller
4
Affects Status Importance Assigned to Milestone
Avahi
Fix Released
Unknown
avahi (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Binary package hint: avahi-daemon

Description: Ubuntu 8.10
Release: 8.10
Package: avahi-daemon-0.6.23-2ubuntu2.1

When putting spaces or escape codes into the hostname= setting in avahi-daemon.conf, the codes get double-escaped.

Examples:

hostname=Living Room HTPC
results in a host name coded like this broadcast to the network:
Living\\032Room\\032HTPC
which is displayed in the network browser as "Living\032Room\032HTPC" instead of "Living Room HTPC" because it got double-escaped. There should only be one \ in front of the 032. For example, my MacBook Pro is listed as "David Miller's MacBook Pro" in the network browser, but is broadcast like this to the network:
David\032Miller\039s\032MacBook\032Pro

Changed in avahi (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in avahi:
status: Unknown → New
Changed in avahi:
status: New → Fix Released
Revision history for this message
David D Miller (justdave) wrote :

This works as designed (i.e. this bug is fixed) in Ubuntu 12.04b2

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.