[Pkg-nagios-changes] [pkg-nagios3] 03/04: Check for existance in perm fixer, not for files.

Alexander Wirt formorer at debian.org
Sun Oct 5 10:13:37 UTC 2014


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

formorer pushed a commit to branch master
in repository pkg-nagios3.

commit fde447c96459cfa3541203d1c4aa587bf3184d7d
Author: Alexander Wirt <formorer at debian.org>
Date:   Sun Oct 5 12:09:49 2014 +0200

    Check for existance in perm fixer, not for files.
---
 debian/nagios3-cgi.postinst    | 2 +-
 debian/nagios3-common.postinst | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/nagios3-cgi.postinst b/debian/nagios3-cgi.postinst
index f9c3e60..d60fa64 100644
--- a/debian/nagios3-cgi.postinst
+++ b/debian/nagios3-cgi.postinst
@@ -27,7 +27,7 @@ setperm() {
     shift 4
     # only do something when no setting exists
     if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then
-      if [ -f "$file" ]; then
+      if [ -e "$file" ]; then
         chown "$user":"$group" "$file"
         chmod "$mode" "$file"
       fi
diff --git a/debian/nagios3-common.postinst b/debian/nagios3-common.postinst
index f91448c..f775987 100644
--- a/debian/nagios3-common.postinst
+++ b/debian/nagios3-common.postinst
@@ -22,7 +22,7 @@ setperm() {
     shift 4
     # only do something when no setting exists
     if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then
-      if [ -f "$file" ]; then
+      if [ -e "$file" ]; then
         chown "$user":"$group" "$file"
         chmod "$mode" "$file"
       fi

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



More information about the Pkg-nagios-changes mailing list