dhclient: format_min_length(h): No safe value for unknown format symbols.

Bug #87816 reported by Ralf Hildebrandt
4
Affects Status Importance Assigned to Milestone
dhcp3 (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

Binary package hint: dhcp3-client

Ever since a recent upgrade, dhclient reports in the log:

Feb 25 11:42:51 kasbah dhclient: format_min_length(h): No safe value for unknown format symbols.
Feb 25 11:42:51 kasbah dhclient: host-name: garbage in format string: h
Feb 25 11:42:51 kasbah dhclient: host-name: 6 extra bytes
Feb 25 11:42:51 kasbah dhclient: Unexpected format code h
Feb 25 11:42:51 kasbah dhclient: host-name: garbage in format string: h
Feb 25 11:42:51 kasbah dhclient: host-name: 6 extra bytes
Feb 25 11:42:51 kasbah dhclient: Unexpected format code h
Feb 25 11:42:51 kasbah dhclient: host-name: garbage in format string: h
Feb 25 11:42:51 kasbah dhclient: host-name: 6 extra bytes
Feb 25 11:42:51 kasbah dhclient: Unexpected format code h

Related branches

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

The version affected is dhcp3-client 3.0.4-12ubuntu

Revision history for this message
Ryan Gandy (replicant10000) wrote :

I'm getting that bug too, but it says on mine that there are 7 extra bytes instead of 6.

This is with the "ifup" command after the network has been previously shut down, and a prior terminal window brought up.

Revision history for this message
Ralf Hildebrandt (ralf-hildebrandt) wrote :

and your network interface is configured to use DHCP?

Revision history for this message
Martin Pitt (pitti) wrote :

This looks like a regression from this change:

dhcp3 (3.0.4-12ubuntu2) feisty; urgency=low

  * Add debian/patches/dynamic-hostname.dpatch:
     - Add support for a new string type 'h' which behaves like 't' except
       that '<hostname>' is changed to the current hostname.
     - Change 'host-name' DHCP option type from 't' to 'h'.
     - Based on a patch from Nathan O'Sullivan, thank you!
  * debian/dhclient.conf: Enable send-hostname by default (value '<hostname>',
    which our shiny new patch from above will translate to the actual
    hostname). Closes: LP#10239 and two handful of duplicates.

Changed in dhcp3:
assignee: nobody → pitti
importance: Undecided → High
status: Unconfirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :
Changed in dhcp3:
status: In Progress → Fix Committed
Revision history for this message
Ryan Gandy (replicant10000) wrote :

@Ralf: Yes it is.

Revision history for this message
Martin Pitt (pitti) wrote :

 dhcp3 (3.0.4-12ubuntu3) feisty; urgency=low
 .
   * debian/patches/dynamic-hostname.dpatch: Fix a few forgotten places where
     the new string type 'h' must be handled as well. (LP: #87816)
   * debian/control: Set Ubuntu maintainer.

I *think* I caught everything now. Feedback is appreciated though, because I was not able to replicate the problem.

Changed in dhcp3:
status: Fix Committed → Fix Released
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.