From: Michael Tremer Date: Mon, 25 Jun 2018 10:01:24 +0000 (+0100) Subject: setup: Don't write configuration files for TCP wrapper any more X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d97ba75fe5634055850deda7a594d52e901dbe75;p=people%2Fms%2Fipfire-2.x.git 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 --- 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)) {