From owner-cvs-all@FreeBSD.ORG Tue Nov 29 22:54:54 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD36816A41F; Tue, 29 Nov 2005 22:54:54 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 043E643D7B; Tue, 29 Nov 2005 22:54:50 +0000 (GMT) (envelope-from peter@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jATMsnmh055012; Tue, 29 Nov 2005 22:54:49 GMT (envelope-from peter@repoman.freebsd.org) Received: (from peter@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jATMsndq055011; Tue, 29 Nov 2005 22:54:49 GMT (envelope-from peter) Message-Id: <200511292254.jATMsndq055011@repoman.freebsd.org> From: Peter Wemm Date: Tue, 29 Nov 2005 22:54:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/config main.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 22:54:54 -0000 peter 2005-11-29 22:54:49 UTC FreeBSD src repository Modified files: usr.sbin/config main.c Log: The DEFAULTS changes caused the user specified config file to be opened much later than before, and it is now after we do a mkdir ../compile/FILE. As a result, if you do 'config DOESNOTEXIST', it now creates the directory ../config/DOESNOTEXIST. It did not do that before. If DEFAULTS does not exist, it still fails early before any permanent changes. This shameless hack restores the old behavior of ensuring the config file actually exists before mkdiring its counterpart directory. Now I can rmdir ../compile/D and it will stay dead, after my fingers keep sabotaging me with 'config D'. (Some of my kernel names started with D, which used to be 1-character unique and my fingers knew this very well...) Revision Changes Path 1.68 +5 -0 src/usr.sbin/config/main.c