X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Futil.c;h=0b0063ee0e6078a48cdec42f053be97c42a7742a;hb=be11c12e49d39a0f1f0f83a67a212c3ff0e98b3d;hp=3bcce2f019bcf6af535d5f4942d135185da4a870;hpb=618e02c7b7f8e11fdb954a019342d745937baf55;p=elogind.git diff --git a/src/util.c b/src/util.c index 3bcce2f01..0b0063ee0 100644 --- a/src/util.c +++ b/src/util.c @@ -2981,23 +2981,6 @@ char *ellipsize(const char *s, unsigned length, unsigned percent) { return r; } -void nss_disable_nscd(void) { - - void (*func)(void); - - /* This is an internal glibc function call. We are not - * supposed to call this, because we are not nscd. However - * sometimes we feel really dangerous and do it - * nonetheless. Muahahah! But at least we protect this with a - * dlsym() just in case glibc takes this away from us. */ - - if ((func = dlsym(RTLD_DEFAULT, "__nss_disable_nscd"))) { - log_debug("Disabling nscd."); - func(); - } else - log_debug("Cannot disable nscd."); -} - int touch(const char *path) { int fd;