From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 5 02:33:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0608A16A4CE; Tue, 5 Oct 2004 02:33:34 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 586AB43D45; Tue, 5 Oct 2004 02:33:33 +0000 (GMT) (envelope-from apeiron@comcast.net) Received: from prophecy.dyndns.org ([68.83.169.224]) by comcast.net (sccrmhc11) with SMTP id <2004100502333201100k3f8ve> (Authid: apeiron); Tue, 5 Oct 2004 02:33:32 +0000 From: Christopher Nehren To: Brooks Davis In-Reply-To: <200410042335.i94NZDaL098088@repoman.freebsd.org> References: <200410042335.i94NZDaL098088@repoman.freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-MNYVu67lJ24XRDHJwvoD" Date: Mon, 04 Oct 2004 22:33:25 -0400 Message-Id: <1096943605.1096.26.camel@prophecy.dyndns.org> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port cc: FreeBSD Hackers List Subject: Re: cvs commit: src/usr.sbin/newsyslog newsyslog.8 newsyslog.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 02:33:34 -0000 --=-MNYVu67lJ24XRDHJwvoD Content-Type: multipart/mixed; boundary="=-JrOftsEojimomdtCtk8j" --=-JrOftsEojimomdtCtk8j Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2004-10-04 at 23:35 +0000, Brooks Davis wrote: > brooks 2004-10-04 23:35:13 UTC >=20 > FreeBSD src repository >=20 > Modified files: > usr.sbin/newsyslog newsyslog.8 newsyslog.c=20 > Log: > Add a new -d argument which is used to specify an alternate root for lo= g > files similar to DESTDIR in the BSD make process. This only affects lo= g > file paths not config file (-f) or archive directory (-a) paths. Excellent idea. This will cut down on a lot of verbosity in the newsyslog.conf file. However, perhaps the accompanying patch is a better implementation. It allows both relative and absolute path names to be listed, so that logs which are stored in a chroot'd environment (think BIND 9) can be specified along with logs specified with the -d option. I'll admit right now that my C is nothing near as good as I'd like it to be (though I have been reading my Deitel book), but I have tested this and it does what I want it to do. Also, while I'm here, is there any plan to port this to RELENG_5? --=-JrOftsEojimomdtCtk8j Content-Description: Content-Disposition: inline; filename=newsyslog.c.patch Content-Type: text/x-patch; charset=ISO-8859-1 Content-Transfer-Encoding: base64 LS0tIC91c3IvaG9tZS9hcGVpcm9uL25ld3N5c2xvZy5jCU1vbiBPY3QgIDQgMjE6Mjc6MzggMjAw NA0KKysrIG5ld3N5c2xvZy5jCU1vbiBPY3QgIDQgMjE6NDQ6MTEgMjAwNA0KQEAgLTM0MCw3ICsz NDAsNyBAQA0KIAlpZiAodGVtcHdvcmsgPT0gTlVMTCkNCiAJCWVycigxLCAibWFsbG9jIG9mIGNv bmZfZW50cnkgZm9yICVzIiwgZm5hbWUpOw0KIA0KLQlpZiAoZGVzdGRpciA9PSBOVUxMKQ0KKwlp ZiAoZGVzdGRpciA9PSBOVUxMIHx8IGZuYW1lWzBdID09ICcvJykNCiAJCXRlbXB3b3JrLT5sb2cg PSBzdHJkdXAoZm5hbWUpOw0KIAllbHNlDQogCQlhc3ByaW50ZigmdGVtcHdvcmstPmxvZywgIiVz JXMiLCBkZXN0ZGlyLCBmbmFtZSk7DQo= --=-JrOftsEojimomdtCtk8j-- --=-MNYVu67lJ24XRDHJwvoD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBYgf1k/lo7zvzJioRAna9AJsF/gVqHyRf9TyxBqGPwU61npw89wCfaVG7 OmJH8Omg5Kc64sFoCnTXsEc= =n3SF -----END PGP SIGNATURE----- --=-MNYVu67lJ24XRDHJwvoD--