From d97ba75fe5634055850deda7a594d52e901dbe75 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 25 Jun 2018 11:01:24 +0100 Subject: [PATCH] setup: Don't write configuration files for TCP wrapper any more This has been removed from the distribution a long time ago Signed-off-by: Michael Tremer --- src/setup/misc.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/setup/misc.c b/src/setup/misc.c index 0710c5b955..b8e7820e14 100644 --- a/src/setup/misc.c +++ b/src/setup/misc.c @@ -101,26 +101,7 @@ int writehostsfiles(void) } fclose(file); fclose(hosts); - - /* TCP wrappers stuff. */ - if (!(file = fopen("/etc/hosts.deny", "w"))) - { - errorbox(_("Unable to write /etc/hosts.deny.")); - return 0; - } - fprintf(file, "ALL : ALL\n"); - fclose(file); - - if (!(file = fopen("/etc/hosts.allow", "w"))) - { - errorbox(_("Unable to write /etc/hosts.allow.")); - return 0; - } - fprintf(file, "sshd : ALL\n"); - fprintf(file, "ALL : localhost\n"); - fprintf(file, "ALL : %s/%s\n", netaddress, netmask); - fclose(file); - + sprintf(commandstring, "/bin/hostname %s.%s", hostname, domainname); if (mysystem(NULL, commandstring)) { -- 2.39.2