$NetBSD: patch-al,v 1.1 2012/08/23 19:00:42 spz Exp $

--- ./lib/fdlimit.c.orig	2009-10-12 18:24:04.000000000 +0000
+++ ./lib/fdlimit.c
@@ -59,6 +59,10 @@ setfdlimit(unsigned int limit)
     }
 #endif
 
+    /* will we mind if the limit is higher? I think not. */
+    if (rl.rlim_cur >= limit)
+	return 0;
+
     rl.rlim_cur = limit;
     if (limit > rl.rlim_max)
         rl.rlim_max = limit;
