[ET Trac] [Einstein Toolkit] #2214: Cactus: handle error in gethostname

Einstein Toolkit trac-noreply at einsteintoolkit.org
Thu Jan 10 06:50:43 CST 2019

#2214: Cactus: handle error in gethostname
 Reporter:  Roland Haas          |       Type:  defect
   Status:  new                  |   Priority:  minor
Milestone:                       |  Component:  Cactus
  Version:  development version  |   Keywords:
 This works around deficiencies of the gethostname call, namely that it
 does not return an error of the supplied buffer is too small and that it
 may not include a NUL byte at the end of the buffer if the buffer was too
 small and the returned name was truncated.

 This should not happen (often) in practise since glibc already has a
 similar workaround in place, but may happen eg on a Mac if they indeed use
 a non glibc C library.

 Pull request is here: https://bitbucket.org/cactuscode/cactus/pull-

Ticket URL: <https://trac.einsteintoolkit.org/ticket/2214>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit

More information about the Trac mailing list