mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-12 20:16:49 +02:00
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 <michael.tremer@ipfire.org>
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user