[Pkg-openldap-devel] Bug#518657: Bug#518657: slapd: fix possible-bashism-in-maintainer-script lintian warning

Peter Marschall peter at adpm.de
Sat Mar 7 20:06:15 UTC 2009


Hi,

On Saturday, 7. March 2009, Steve Langasek wrote:
> tags 518657 -patch
> thanks
>
> On Sat, Mar 07, 2009 at 07:25:31PM +0100, Peter Marschall wrote:
> > --- debian/slapd.scripts-common
> > +++ debian/slapd.scripts-common	2009-03-07 14:37:36.000000000 +0100
> > @@ -632,7 +632,7 @@
> >  	# For the domain really.argh.org we create the basedn
> >  	# dc=really,dc=argh,dc=org with the dc entry dc: really
> >  	db_get slapd/domain
> > -	local basedn="dc=`echo $RET | sed 's/^\.//; s/\./,dc=/g'`"
> > +	basedn="dc=`echo $RET | sed 's/^\.//; s/\./,dc=/g'`"
> >  	dc="`echo $RET | sed 's/^\.//; s/\..*$//'`"
> >
> >  	db_get slapd/backend
>
> This patch is wrong and should not be applied.  Variables used in functions
> should be locally scoped, they just need to be declared in the manner
> supported by policy.

I'm sorry, you're wrong here.

The variable has been declared local a few lines before.
If you want to, you may look at the extended patch
(created with -u -U 7)

Regards
Peter

-- 
Peter Marschall
peter at adpm.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openldap-2.4.15-noBashism.patch
Type: text/x-diff
Size: 704 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20090307/0d90cb87/attachment.patch 


More information about the Pkg-openldap-devel mailing list