From c8a58dbc3274d828fa1fc5eb5972392f9919c9cf Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 23 May 2015 23:48:07 -0700 Subject: [PATCH] All: Fix sanitize-deb script to set file permissions properly if run as (fake)root --- CHANGES | 1 + tools/sanitize-deb.sh | 2 ++ 2 files changed, 3 insertions(+) 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