forked from mirrors/nixpkgs
ucspi-tcp: remove setuid from install script
This commit is contained in:
parent
c5e314dabe
commit
d461e64b63
|
@ -14,6 +14,7 @@ stdenv.mkDerivation rec {
|
||||||
url = "http://ftp.de.debian.org/debian/pool/main/u/ucspi-tcp/ucspi-tcp_0.88-3.diff.gz";
|
url = "http://ftp.de.debian.org/debian/pool/main/u/ucspi-tcp/ucspi-tcp_0.88-3.diff.gz";
|
||||||
sha256 = "0mzmhz8hjkrs0khmkzs5i0s1kgmgaqz07h493bd5jj5fm5njxln6";
|
sha256 = "0mzmhz8hjkrs0khmkzs5i0s1kgmgaqz07h493bd5jj5fm5njxln6";
|
||||||
})
|
})
|
||||||
|
./remove-setuid.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
# Apply Debian patches
|
# Apply Debian patches
|
||||||
|
|
15
pkgs/tools/networking/ucspi-tcp/remove-setuid.patch
Normal file
15
pkgs/tools/networking/ucspi-tcp/remove-setuid.patch
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/hier.c b/hier.c
|
||||||
|
index 5663ada..1d73b84 100644
|
||||||
|
--- a/hier.c
|
||||||
|
+++ b/hier.c
|
||||||
|
@@ -2,8 +2,8 @@
|
||||||
|
|
||||||
|
void hier()
|
||||||
|
{
|
||||||
|
- h(auto_home,-1,-1,02755);
|
||||||
|
- d(auto_home,"bin",-1,-1,02755);
|
||||||
|
+ h(auto_home,-1,-1,0755);
|
||||||
|
+ d(auto_home,"bin",-1,-1,0755);
|
||||||
|
|
||||||
|
c(auto_home,"bin","tcpserver",-1,-1,0755);
|
||||||
|
c(auto_home,"bin","tcprules",-1,-1,0755);
|
Loading…
Reference in a new issue