]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
setup: Don't write configuration files for TCP wrapper any more
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Jun 2018 10:01:24 +0000 (11:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Jun 2018 10:01:24 +0000 (11:01 +0100)
This has been removed from the distribution a long time ago

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/setup/misc.c

index 0710c5b955a6488c62ea4c5ff71793a19bd78a7b..b8e7820e143ee10e93b189d3ef283e7e72f9ce43 100644 (file)
@@ -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))
        {