From owner-cvs-src@FreeBSD.ORG Thu Apr 10 22:57:55 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0563C106566C; Thu, 10 Apr 2008 22:57:55 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id D479B8FC0C; Thu, 10 Apr 2008 22:57:54 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m3AMvsIQ049478; Thu, 10 Apr 2008 22:57:54 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3AMvsOn049477; Thu, 10 Apr 2008 22:57:54 GMT (envelope-from imp) Message-Id: <200804102257.m3AMvsOn049477@repoman.freebsd.org> From: Warner Losh Date: Thu, 10 Apr 2008 22:57:54 +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-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2008 22:57:55 -0000 imp 2008-04-10 22:57:54 UTC FreeBSD src repository Modified files: usr.sbin/config main.c Log: Fix a bug introduced by DEFAULTS feature. When the config file doesn't exist, we make a directory and then say "oops, that file isn't there" leaving the directory behind. Add a stat for the config file so that we detect this before making the directory. This is semi-lame, but less lame than having this bug. Revision Changes Path 1.78 +2 -0 src/usr.sbin/config/main.c