about summary refs log tree commit diff
path: root/Src/Builtins
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-05-28 23:26:23 +0000
committerClint Adams <clint@users.sourceforge.net>2001-05-28 23:26:23 +0000
commitc58a4e7e28504c4d4cca8ecabc3ea92225fee29b (patch)
tree16d4319b1198f6d1a90429bfaed47a4fd53c6077 /Src/Builtins
parent1766842e5883098841fb2e5c81e907d5888f08d2 (diff)
downloadzsh-c58a4e7e28504c4d4cca8ecabc3ea92225fee29b.tar.gz
zsh-c58a4e7e28504c4d4cca8ecabc3ea92225fee29b.tar.xz
zsh-c58a4e7e28504c4d4cca8ecabc3ea92225fee29b.zip
14517: glibc 2.2.3 tweaks revisited
Diffstat (limited to 'Src/Builtins')
-rw-r--r--Src/Builtins/rlimits.awk4
1 files changed, 2 insertions, 2 deletions
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)