[Hostname-devel] Bug#565634: Bug#565634: hostname -A prints broken output

Marco d'Itri md at Linux.IT
Tue Jan 19 00:51:44 UTC 2010


On Jan 18, Michael Meskes <meskes at debian.org> wrote:

> Could you please debug hostname? It printfs buf in line 317 which is set by
> calling getnameinfo in line 310. Does getnameinfo really return this character?
> Or is an error return not correctly caught?
Indeed, you are not supposed to use the buffer if getnameinfo(2) fails
(because I have an interface with no rDNS).
Patch attached.

-- 
ciao,
Marco
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hostname.diff
Type: text/x-diff
Size: 519 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/hostname-devel/attachments/20100119/5d7b516b/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/hostname-devel/attachments/20100119/5d7b516b/attachment.pgp>


More information about the Hostname-devel mailing list