diff --git a/CHANGES b/CHANGES index 4f376d20b..218f71738 100644 --- a/CHANGES +++ b/CHANGES @@ -39,6 +39,7 @@ Misc: - Qt: Fast forward (held) option moved from Other to Emulation menu - All: Add --help flag for command line programs - Qt: Show version info in window title + - All: Fix sanitize-deb script to set file permissions properly if run as (fake)root 0.2.1: (2015-05-13) Bugfixes: diff --git a/tools/sanitize-deb.sh b/tools/sanitize-deb.sh index af7c3b72b..e1c523fb8 100755 --- a/tools/sanitize-deb.sh +++ b/tools/sanitize-deb.sh @@ -56,6 +56,8 @@ while [ $# -gt 0 ]; do sed -i~ "s/,$//g" deb-temp/DEBIAN/control sed -i~ "/^[^:]*: $/d" deb-temp/DEBIAN/control rm deb-temp/DEBIAN/control~ + chown -R 0:0 deb-temp + chmod 600 deb-temp/DEBIAN/md5sums dpkg-deb -b deb-temp $DEB rm -rf deb-temp shift