From owner-freebsd-bugs Fri Jun 14 14:50:17 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 72EA037B413 for ; Fri, 14 Jun 2002 14:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5ELo1566469; Fri, 14 Jun 2002 14:50:01 -0700 (PDT) (envelope-from gnats) Received: from lockdown.spectrum.fearmuffs.net (c164-147.pro.thalamus.se [212.31.164.147]) by hub.freebsd.org (Postfix) with ESMTP id 745C637B485 for ; Fri, 14 Jun 2002 14:41:15 -0700 (PDT) Received: from lockdown.spectrum.fearmuffs.net (localhost.spectrum.fearmuffs.net [127.0.0.1]) by lockdown.spectrum.fearmuffs.net (8.12.3/8.12.3) with ESMTP id g5ELFpdu002844 for ; Fri, 14 Jun 2002 23:15:51 +0200 (CEST) (envelope-from redpixel@lockdown.spectrum.fearmuffs.net) Received: (from redpixel@localhost) by lockdown.spectrum.fearmuffs.net (8.12.3/8.12.3/Submit) id g5ELFo47002843; Fri, 14 Jun 2002 23:15:50 +0200 (CEST) (envelope-from redpixel) Message-Id: <200206142115.g5ELFo47002843@lockdown.spectrum.fearmuffs.net> Date: Fri, 14 Jun 2002 23:15:50 +0200 (CEST) From: Martin Faxer Reply-To: Martin Faxer To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/39311: you can't enable inetd in sysinstall without editing inetd.conf Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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