summaryrefslogtreecommitdiff
path: root/Ports/dropbear/patches/remove-setrlimit.patch
blob: 6537111ba89f15379090c6bbc27915d3ef522db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/dbutil.c.orig
+++ b/dbutil.c
@@ -553,9 +553,6 @@
 }
 
 void disallow_core() {
-	struct rlimit lim;
-	lim.rlim_cur = lim.rlim_max = 0;
-	setrlimit(RLIMIT_CORE, &lim);
 }
 
 /* Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE, with the result in *val */