Source: beep
Version: 1.3-3
Author: Guillem Jover <guillem@debian.org>
Status: sent
Debbug: 769898
Description:
 Uses absolute obsolete path for dpkg-statoverride.


diff --git a/debian/postinst b/debian/postinst
index fb659d6..95c48a2 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -35,17 +35,7 @@ if [ "$suid" = "not suid at all" ] ; then
 fi
 
 
-if [ -x /usr/sbin/dpkg-statoverride ] ; then
-	if ! dpkg-statoverride --list /usr/bin/beep >/dev/null ; then
-		if [ "$suid" = "usable for all" ] ; then
-			chmod 4755 /usr/bin/beep
-		elif [ "$suid" = "usable for group audio" ] ; then
-			chmod 4754 /usr/bin/beep
-		elif [ "$suid" = "usable only for root" ] ; then
-			chmod 0755 /usr/bin/beep
-		fi
-	fi
-else
+if ! dpkg-statoverride --list /usr/bin/beep >/dev/null ; then
 	if [ "$suid" = "usable for all" ] ; then
 		chmod 4755 /usr/bin/beep
 	elif [ "$suid" = "usable for group audio" ] ; then
