From owner-cvs-all Sun Feb 23 18: 9: 5 2003 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 B876E37B401; Sun, 23 Feb 2003 18:09:03 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 528B343FDD; Sun, 23 Feb 2003 18:09:03 -0800 (PST) (envelope-from gad@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1O2930U030559; Sun, 23 Feb 2003 18:09:03 -0800 (PST) (envelope-from gad@repoman.freebsd.org) Received: (from gad@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1O293ff030558; Sun, 23 Feb 2003 18:09:03 -0800 (PST) Message-Id: <200302240209.h1O293ff030558@repoman.freebsd.org> From: Garance A Drosehn Date: Sun, 23 Feb 2003 18:09:03 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/newsyslog newsyslog.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG gad 2003/02/23 18:09:03 PST Modified files: usr.sbin/newsyslog newsyslog.c Log: 1) Fix so -a honors the -n ("do nothing") option. Before, if the directory given for -a did not exist, then newsyslog would always try to create it, even if -n was specified. 2) When -a processing *does* create the directory, have it check the result from mkdir(), and immediately error-out if that failed. PR: bin/46974 MFC after: 3 weeks Revision Changes Path 1.52 +16 -4 src/usr.sbin/newsyslog/newsyslog.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message