summaryrefslogtreecommitdiff
path: root/src/nss-myhostname
AgeCommit message (Collapse)Author
2013-04-18move _cleanup_ attribute in front of the typeHarald Hoyer
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
2013-04-10Use initalization instead of explicit zeroing in more placesZbigniew Jędrzejewski-Szmek
2013-04-02nss-myhostname: do not use _cleanup_Zbigniew Jędrzejewski-Szmek
mss-myhostname wasn't working because of underlinking. Instead of fixing the underlinking, just remove the use of _cleanup_ macros. It is impolite to use our utility functions in modules designed to be loaded by others. So cleanup macros which (at some point) call assert which calls log_assert_failed, should not be used. Revert this part of commit d73c3269c.
2013-03-31nss-myhostname: use _cleanup_ and split function into twoZbigniew Jędrzejewski-Szmek
The triply nested loop is just too much. Let's split out the middle loop's body, so the whole thing is easier to read. Also modernize the style a bit, using structure initialization to avoid memset and such.
2013-02-07nss-myhostname: copy first result to preallocated bufferEelco Dolstra
Fixes a segfault in nscd when using nss-myhostname. Nscd expects that an NSS module's gethostbyname4_r function returns its first result in the pre-allocated gaih_addrtuple denoted by **pat. (See nscd/aicache.c in the Glibc sources.) However, nss-myhostname doesn't fill in **pat but allocates the first result in ‘buffer’, then sets *pat. So nscd crashes (e.g. when running ‘getent ahosts my-machine’). Hard to tell if this is a bug in nscd, since there doesn't seem to be a proper API spec for gethostbyname4_r. But in any case, this patch fixes the crash by copying the first result to **pat.
2013-01-07nss-myhostname: remove redundant .gitignoreTom Gundersen
2013-01-07nss-myhostname: integrate documentationTom Gundersen
Converted from html to xml and changed the style to fit into the other manpages.
2013-01-07nss-myhostname: integrate into systemd buildsystemTom Gundersen
Note that there are still some rome for cleanups. In particular, the .la files are now installed, which we probably don't want; and some of the macros in Makefile.am are likely redundan.
2013-01-07nss-myhostname: remove duplicate LICENCETom Gundersen
Also update the licence in the source files.
2013-01-07nss-myhostname: remove non-Linux supportTom Gundersen
2013-01-03nss-myhostname: move to subdirectoryTom Gundersen
In order to merge into the systemd repos.