[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[glibc] 01/01: debian/debhelper.in/libc-bin.postinst: do not update /etc/nsswitch.conf when its content already matches the default. Closes: #865144.



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

aurel32 pushed a commit to branch sid
in repository glibc.

commit 86f634921461968c7c66958cf14e8f75df15a3c2
Author: Aurelien Jarno <aurelien@aurel32.net>
Date:   Mon Jul 31 16:54:05 2017 +0200

    debian/debhelper.in/libc-bin.postinst: do not update /etc/nsswitch.conf when its content already matches the default.  Closes: #865144.
---
 debian/changelog                      | 4 ++++
 debian/debhelper.in/libc-bin.postinst | 6 ++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f551e89..ebc927f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,6 +26,10 @@ glibc (2.24-13) UNRELEASED; urgency=medium
   [ Adam Conrad ]
   * debian/patches/arm/submitted-strip-bit-0.diff: Fix ld.so crash on armv7t.
 
+  [ Santiago Vila ]
+  * debian/debhelper.in/libc-bin.postinst: do not update /etc/nsswitch.conf
+    when its content already matches the default.  Closes: #865144.
+
  -- Aurelien Jarno <aurel32@debian.org>  Mon, 19 Jun 2017 17:36:36 +0200
 
 glibc (2.24-12) unstable; urgency=high
diff --git a/debian/debhelper.in/libc-bin.postinst b/debian/debhelper.in/libc-bin.postinst
index e6b7a40..802a3ad 100644
--- a/debian/debhelper.in/libc-bin.postinst
+++ b/debian/debhelper.in/libc-bin.postinst
@@ -32,8 +32,10 @@ update_to_current_default() {
         return
         ;;
     esac
-    echo "Updating $2 to current default."
-    cp -p $1 $2
+    if ! cmp -s $1 $2; then
+      echo "Updating $2 to current default."
+      cp -p $1 $2
+    fi
   fi
 }
 

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


Reply to: