super: Don't set special perms, don't chown to root

This commit is contained in:
Will Dietz 2017-06-16 07:13:54 -05:00
parent 5d0a8792a7
commit 8098e4048b
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,12 @@ stdenv.mkDerivation rec {
sha256 = "0k476f83w7f45y9jpyxwr00ikv1vhjiq0c26fgjch9hnv18icvwy";
};
prePatch = ''
substituteInPlace Makefile.in \
--replace "-o root" "" \
--replace 04755 755
'';
patches = [
(fetchpatch { url = http://anonscm.debian.org/cgit/users/robert/super.git/plain/debian/patches/14-Fix-unchecked-setuid-call.patch;
sha256 = "08m9hw4kyfjv0kqns1cqha4v5hkgp4s4z0q1rgif1fnk14xh7wqh";