summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Builtins/rlimits.awk4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 9c7f5d40f..360250522 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-05-28  Clint Adams  <schizo@debian.org>
 
+	* 14517: Src/Builtins/rlimits.awk: fix glibc2.2.3
+	handling.
+
 	* 14513: Completion/Debian/Command/.distfiles,
 	Completion/Debian/Command/_update_alternatives:
 	completion for update-alternatives
diff --git a/Src/Builtins/rlimits.awk b/Src/Builtins/rlimits.awk
index 5542c6cef..d4a1db4a6 100644
--- a/Src/Builtins/rlimits.awk
+++ b/Src/Builtins/rlimits.awk
@@ -56,9 +56,9 @@ BEGIN {limidx = 0}
 }
 # in case of GNU libc
 /^[\t ]*RLIM_NLIMITS[\t ]*=[\t ]*RLIMIT_NLIMITS/ {
-    nlimits = limidx
+    if(!nlimits) { nlimits = limidx }
 }
-/^[\t ]*RLIM_NLIMITS[\t ]*=[\t ]*[0-9][0-9]*/ {
+/^[\t ]*RLIMIT_NLIMITS[\t ]*=[\t ]*[0-9][0-9]*/ {
     limindex = index($0, "=")
     limtail = substr($0, limindex, 80)
     split(limtail, tmp)