[glibc] 02/02: 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 stretch
in repository glibc.
commit 36a9e494508b7327e63ad7874d2f54209078d1e7
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 5920c01..7f50406 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,10 @@ glibc (2.24-11+deb9u2) UNRELEASED; urgency=medium
[ Aurelien Jarno ]
* debian/control.in/x32: Add a gcc-multilib Recommends for libc6-dev-x32.
+ [ 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> Sun, 20 Aug 2017 13:58:01 +0200
glibc (2.24-11+deb9u1) stretch-security; urgency=medium
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: