chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hostnamed: drop nss-myhostname check
[elogind.git]
/
src
/
hostname
/
hostnamed.c
diff --git
a/src/hostname/hostnamed.c
b/src/hostname/hostnamed.c
index d826a31da96a3838a34a40a329b36d6ddd51a39b..8b6aebf992f2bde37bb839e7821cdcd6941d00cd 100644
(file)
--- a/
src/hostname/hostnamed.c
+++ b/
src/hostname/hostnamed.c
@@
-22,7
+22,6
@@
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
-#include <dlfcn.h>
#include <sys/utsname.h>
#include "util.h"
#include <sys/utsname.h>
#include "util.h"
@@
-125,18
+124,6
@@
static int context_read_data(Context *c) {
return 0;
}
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);
static bool valid_chassis(const char *chassis) {
assert(chassis);
@@
-708,9
+695,6
@@
int main(int argc, char *argv[]) {
goto finish;
}
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;
if (argc != 1) {
log_error("This program takes no arguments.");
r = -EINVAL;