Date: Fri, 14 Jun 2002 23:15:50 +0200 (CEST) From: Martin Faxer <gmh003532@brfmasthugget.se> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/39311: you can't enable inetd in sysinstall without editing inetd.conf Message-ID: <200206142115.g5ELFo47002843@lockdown.spectrum.fearmuffs.net>
next in thread | raw e-mail | index | archive | help
>Number: 39311
>Category: bin
>Synopsis: you can't enable inetd in sysinstall without editing inetd.conf
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 14 14:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Martin Faxer
>Release: FreeBSD 5.0-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD lockdown.spectrum.fearmuffs.net 5.0-CURRENT FreeBSD 5.0-CURRENT #11: Fri Jun 14 14:02:42 CEST 2002 redpixel@lockdown.spectrum.fearmuffs.net:/usr/obj/usr/src/sys/LOCKDOWN i386
>Description:
in sysinstall, if you try to enable inetd you are faced with a dialog box
asking you whether you want to edit inetd.conf or use the standard settings.
if you choose to use the standard settings (ie. press [no]) inetd will not
be enabled due to a misplaced variable_set2() call.
>How-To-Repeat:
try to enable inetd without first editing inetd.conf
>Fix:
apply the patch below:
--- sysinstall.diff begins here ---
Index: config.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/sysinstall/config.c,v
retrieving revision 1.202
diff -u -r1.202 config.c
--- config.c 10 Jun 2002 04:47:26 -0000 1.202
+++ config.c 14 Jun 2002 21:12:08 -0000
@@ -933,6 +933,7 @@
} 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"
@@ -944,7 +945,6 @@
sprintf(cmd, "%s /etc/inetd.conf", variable_get(VAR_EDITOR));
dialog_clear();
systemExecute(cmd);
- variable_set2("inetd_enable", "YES", 1);
}
}
restorescr(w);
--- sysinstall.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206142115.g5ELFo47002843>
