From 9efd72278023e93e4416360ce0337ff459dba3f5 Mon Sep 17 00:00:00 2001
From: Andreas Henriksson <andreas@fatal.se>
Date: Wed, 17 Feb 2016 19:45:53 +0100
Subject: [PATCH 2/3] Explicitly set nfs-utils_env.sh executable

---
 debian/changelog | 3 +++
 debian/rules     | 1 +
 2 files changed, 4 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index df2893b..cfdb48b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -47,6 +47,9 @@ nfs-utils (1:1.2.8-7) UNRELEASED; urgency=medium
   * Restore anything related to nfs-common.init and nfs-common.default
   * debian/nfs-common.links: Mask nfs-common init script with a symlink
     to /dev/null to avoid using it under systemd.
+  * Explicitly set executable permissions on nfs-utils_env.sh helper
+    instead of relying on debian/nfs-utils_env.sh having correct
+    permissions in source directory.
 
  -- Andreas Henriksson <andreas@fatal.se>  Thu, 11 Feb 2016 14:43:39 +0100
 
diff --git a/debian/rules b/debian/rules
index 3b81bd7..dcabc04 100755
--- a/debian/rules
+++ b/debian/rules
@@ -72,6 +72,7 @@ binary-arch: build
 	dh_strip
 	dh_compress
 	dh_fixperms
+	chmod +x debian/nfs-common/usr/lib/systemd/scripts/nfs-utils_env.sh
 	chmod u+s debian/nfs-common/sbin/mount.nfs
 	dh_installdeb
 	dh_shlibdeps
-- 
2.1.4

