[Pkg-openldap-devel] [openldap] 02/05: slapd.scripts-common: 'local'ize variables

Ryan Tandy rtandy-guest at moszumanska.debian.org
Wed Aug 12 01:50:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

rtandy-guest pushed a commit to branch master
in repository openldap.

commit 836e81e74a16f3648c27e1996b55d4428f035f18
Author: Peter Marschall <peter at adpm.de>
Date:   Sat Apr 12 19:01:39 2014 +0200

    slapd.scripts-common: 'local'ize variables
    
    Make variables only used within a function local to that function:
    * dir in update_permissions()
    * slapadd_opts in load_databases()
---
 debian/slapd.scripts-common | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/slapd.scripts-common b/debian/slapd.scripts-common
index 266d277..aaff5d0 100644
--- a/debian/slapd.scripts-common
+++ b/debian/slapd.scripts-common
@@ -92,6 +92,7 @@ create_ldap_directories() {	# {{{
 }
 # }}}
 update_permissions() {	# {{{
+	local dir
 	dir="$1"
 	if [ -d "$dir" ]; then
 		[ -z "$SLAPD_USER" ] || chown -R -H "$SLAPD_USER" "$dir"
@@ -190,7 +191,7 @@ dump_databases() {							# {{{
 
 # }}}
 load_databases() {							# {{{
-	local dir file db dbdir backupdir
+	local dir file db dbdir backupdir slapadd_opts
 
 	dir=`database_dumping_destdir`
 	echo >&2 "  Loading from $dir: "

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-openldap/openldap.git



More information about the Pkg-openldap-devel mailing list