From 5ae8784f591a10e3b022a4ffacdfdcbd6af17e32 Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 6 Feb 2003 01:55:40 +0000 Subject: Relocate a call to enable inetd so that it is set regardless of whether the user chooses to edit inetd.conf. PR: 39311 Reported by: Martin Faxer --- usr.sbin/sade/config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin/sade/config.c') diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index 0edeed4..a1b5044 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -941,7 +941,7 @@ configInetd(dialogMenuItem *self) variable_set2("inetd_enable", "NO", 1); } else { /* If inetd is enabled, we'll need an inetd.conf */ - + variable_set2("inetd_enable", "YES", 1); if (!msgYesNo("inetd(8) relies on its configuration file, /etc/inetd.conf, to determine\n" "which of its Internet services will be available. The default FreeBSD\n" "inetd.conf(5) leaves all services disabled by default, so they must be\n" @@ -953,7 +953,6 @@ configInetd(dialogMenuItem *self) sprintf(cmd, "%s /etc/inetd.conf", variable_get(VAR_EDITOR)); dialog_clear(); systemExecute(cmd); - variable_set2("inetd_enable", "YES", 1); } } restorescr(w); -- cgit v1.1