[Pkg-mc-commits] r408 - trunk/debian

Yury Zaytsev zaytsev-guest at alioth.debian.org
Tue May 18 08:53:05 UTC 2010


Author: zaytsev-guest
Date: 2010-05-18 08:52:59 +0000 (Tue, 18 May 2010)
New Revision: 408

Modified:
   trunk/debian/mc.postinst
   trunk/debian/mc.postrm
Log:
Updated scripts to follow the logic from nagios3: if there are no user
overrides, then we can just safely set the SGID bit to cons.saver. If
there are some overrides, we'd better not to mess with them.



Modified: trunk/debian/mc.postinst
===================================================================
--- trunk/debian/mc.postinst	2010-05-17 15:15:22 UTC (rev 407)
+++ trunk/debian/mc.postinst	2010-05-18 08:52:59 UTC (rev 408)
@@ -5,7 +5,8 @@
 
 if [ x"$DEB_HOST_GNU_SYSTEM" = "xlinux-gnu" ]; then
 	if ! dpkg-statoverride --list /usr/lib/mc/cons.saver >/dev/null 2>&1; then
-		dpkg-statoverride --update --add root tty 2755 /usr/lib/mc/cons.saver
+		chgrp tty /usr/lib/mc/cons.saver
+		chmod g+s /usr/lib/mc/cons.saver
 	fi
 fi
 

Modified: trunk/debian/mc.postrm
===================================================================
--- trunk/debian/mc.postrm	2010-05-17 15:15:22 UTC (rev 407)
+++ trunk/debian/mc.postrm	2010-05-18 08:52:59 UTC (rev 408)
@@ -1,7 +1,6 @@
 #!/bin/sh
 set -e
 
-
 case "$1" in
 	purge)
 
@@ -18,12 +17,6 @@
 
 		rmdir /etc/mc 2>/dev/null || true
 
-		export DEB_HOST_GNU_SYSTEM=$(dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
-
-		if [ x"$DEB_HOST_GNU_SYSTEM" = "xlinux-gnu" ]; then
-			dpkg-statoverride --remove /usr/lib/mc/cons.saver
-		fi
-
 	;;
 esac
 




More information about the Pkg-mc-commits mailing list