diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-11 15:38:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-11 15:38:17 +0200 |
commit | 1e5b1aaa4c8531ef531ec46f6ecbb28fb2f81008 (patch) | |
tree | 41e6955bfbbf1cf3d13dc022f6aa60cca5ae5601 /src | |
parent | c2142cf1d1276f4f220bdd9af4ff7a716cc7a305 (diff) |
hostnamed: drop nss-myhostname check
The check only cares about whether the module is installed, not enabled.
But installation we should know anyway, after all we ship the module
with systemd these days...
Diffstat (limited to 'src')
-rw-r--r-- | src/hostname/hostnamed.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index d826a31da9..8b6aebf992 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -22,7 +22,6 @@ #include <errno.h> #include <string.h> #include <unistd.h> -#include <dlfcn.h> #include <sys/utsname.h> #include "util.h" @@ -125,18 +124,6 @@ static int context_read_data(Context *c) { return 0; } -static bool check_nss(void) { - void *dl; - - dl = dlopen("libnss_myhostname.so.2", RTLD_LAZY); - if (dl) { - dlclose(dl); - return true; - } - - return false; -} - static bool valid_chassis(const char *chassis) { assert(chassis); @@ -708,9 +695,6 @@ int main(int argc, char *argv[]) { goto finish; } - if (!check_nss()) - log_warning("Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!"); - if (argc != 1) { log_error("This program takes no arguments."); r = -EINVAL; |