Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Oct 2004 22:33:25 -0400
From:      Christopher Nehren <apeiron@comcast.net>
To:        Brooks Davis <brooks@FreeBSD.org>
Cc:        FreeBSD Hackers List <hackers@freebsd.org>
Subject:   Re: cvs commit: src/usr.sbin/newsyslog newsyslog.8 newsyslog.c
Message-ID:  <1096943605.1096.26.camel@prophecy.dyndns.org>
In-Reply-To: <200410042335.i94NZDaL098088@repoman.freebsd.org>
References:  <200410042335.i94NZDaL098088@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1096943605.1096.26.camel>