This file is indexed.

/etc/piuparts/scripts/post_distupgrade_exceptions is in piuparts 0.84.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
#!/bin/sh
set -e

log_debug() {
	echo "Debug: piuparts exception for package $PIUPARTS_OBJECTS"
}

# E: Could not perform immediate configuration on ...
rm -fv /etc/apt/apt.conf.d/piuparts-disable-immediate-configure

if [ "$PIUPARTS_DISTRIBUTION" = "squeeze" ]; then

	case ${PIUPARTS_OBJECTS%%=*} in
		linpopup)
			# package removed after lenny
			log_debug
			for file in /var/lib/linpopup/messages.dat
			do
				test ! -f "$file" || chmod -c o-w "$file"
			done
			;;
	esac

fi

if [ "$PIUPARTS_DISTRIBUTION" = "wheezy" ]; then

	# https://bugs.debian.org/687611
	if [ -f /usr/share/keyrings/debian-archive-removed-keys.gpg~ ]; then
		echo "FIXING /usr/share/keyrings/debian-archive-removed-keys.gpg~"
		mv -v /usr/share/keyrings/debian-archive-removed-keys.gpg~ /usr/share/keyrings/debian-archive-removed-keys.gpg
	fi

	case ${PIUPARTS_OBJECTS%%=*} in
		kismet|\
		tshark|\
		wireshark|\
		wireshark-common|\
		wireshark-dbg|\
		libcap2-bin)
			# libcap2-bin/wheezy is part of the minimal chroot and recommends libpam-cap
			# a conffile moved from libcap2-bin/squeeze to libpam-cap/wheezy
			log_debug
			apt-get install -yf libpam-cap
			;;
		ogre-doc-nonfree)
			# #773059 - ogre-doc: unhandled symlink to directory conversion: /usr/share/doc/PACKAGE
			# package removed after lenny
			log_debug
			apt-get install -yf ogre-1.8-doc
			;;
		phpgacl)
			# #682825
			# package not in wheezy
			log_debug
			for dir in /usr/share/phpgacl/admin/templates_c
			do
				test ! -d "$dir" || chmod -c o-w "$dir"
			done
			;;
	esac

fi

if [ "$PIUPARTS_DISTRIBUTION" = "jessie" ]; then

	# base-files only upgrades pristine /etc/nsswitch.conf
	if ! grep -q ^gshadow: /etc/nsswitch.conf ; then
		echo "Adding gshadow line to /etc/nsswitch.conf"
		sed -i '/^shadow:/a gshadow:        files' /etc/nsswitch.conf
	fi

fi

if [ "$PIUPARTS_DISTRIBUTION" = "stretch" ]; then

	# fakeroot:i386 in jessie shipped these with permissions 0775 (#826318)
	for dir in /usr/share/man/nl /usr/share/man/nl/man1
	do
		test ! -d "$dir" || chmod -c g-w "$dir"
	done

fi

if [ "$PIUPARTS_DISTRIBUTION" = "buster" ]; then

	# dpkg does not properly clean up directories getting empty and no longer shipped
	for dir in /etc/dbus-1/system.d /etc/dbus-1
	do
		if [ -d "$dir" ]; then
			rmdir --ignore-fail-on-non-empty "$dir"
			test -d "$dir" || echo "removed empty directory '$dir'"
		fi
	done

	# policykit-1 in buster changes the permissions 0755 -> 0700
	if [ -d /var/lib/polkit-1 ]; then
		chmod -c go-rx /var/lib/polkit-1
	fi

fi