Date: Sat, 5 Jul 2008 10:52:49 +0300 From: Peter Pentchev <roam@ringlet.net> To: Mikhail Goriachev <mikhailg@webanoide.org> Cc: ports@FreeBSD.org, delphij@FreeBSD.org Subject: Re: FreeBSD Port: openldap-server-2.4.10 Message-ID: <20080705075249.GA1145@straylight.m.ringlet.net> In-Reply-To: <20080704223432.49566vn60rygljk8@www.san.navalradio.cl> References: <20080704132215.36754y85s8y8kisk@www.san.navalradio.cl> <20080704221500.GA1118@straylight.m.ringlet.net> <20080704223432.49566vn60rygljk8@www.san.navalradio.cl>
next in thread | previous in thread | raw e-mail | index | archive | help
--Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 04, 2008 at 10:34:32PM -0400, Mikhail Goriachev wrote: > Quoting Peter Pentchev <roam@ringlet.net>: >=20 > > On Fri, Jul 04, 2008 at 01:22:15PM -0400, Mikhail Goriachev wrote: > >> Hi, > > [snip] > >> I slapped together a workaround. Here's a "patch", maybe the idea of > >> it will be of some use. > > > > Just a minor comment on the patch: > > > >> +DBDIR=3D`grep directory /usr/local/etc/openldap/slapd.conf | awk '{ > >> print $2 }'` > > > > This is better written as > > > > awk '/directory/ {print $2}' /usr/local/etc/openldap/slapd.conf >=20 > Nice one! >=20 > > or possibly (I'm not quite familiar with the slapd.conf syntax) even: > > > > awk '$1 =3D=3D "directory" {print $2}' /usr/local/etc/openldap/slapd.= conf >=20 > They both work but I like the first one more. Actually the second one might be better - the first one may be confused by the string "directory" appearing either in a comment or in the string value of some other parameter or even in the *name* of some other parameter. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence was in the past tense. --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkhvKFEACgkQ7Ri2jRYZRVNzEACfWRTm9GracCOPHrDMl4KY1e7S yrYAoLZ8UchLH8WK8n8d263Y+V8HARkn =JKQy -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080705075249.GA1145>