about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-08-21 20:05:33 +0000
committerClint Adams <clint@users.sourceforge.net>2001-08-21 20:05:33 +0000
commitffec7684a71a32ed3b13775251a2639f1e6b355b (patch)
tree8cc0b3ed486e2c17bef4a1a712fa59c59b6b7304
parenta90502aeb0062c56cd4b2af69a047ccda27e3394 (diff)
downloadzsh-ffec7684a71a32ed3b13775251a2639f1e6b355b.tar.gz
zsh-ffec7684a71a32ed3b13775251a2639f1e6b355b.tar.xz
zsh-ffec7684a71a32ed3b13775251a2639f1e6b355b.zip
15675: Src/Builtins/rlimits.awk: handle case where RLIM_NLIMITS is set to a number within an enum.
-rw-r--r--ChangeLog6
-rw-r--r--Src/Builtins/rlimits.awk2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 66c9b50a0..37c7e268d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-21  Clint Adams  <clint@zsh.org>
+
+	* 15675: Src/Builtins/rlimits.awk: handle case
+	where RLIM_NLIMITS is set to a number within an
+	enum.
+
 2001-08-21  Bart Schaefer  <schaefer@zsh.org>
 
 	* users/4157 (plus workers/15674): Completion/Unix/Command/_man:
diff --git a/Src/Builtins/rlimits.awk b/Src/Builtins/rlimits.awk
index d4a1db4a6..1a3e5fe77 100644
--- a/Src/Builtins/rlimits.awk
+++ b/Src/Builtins/rlimits.awk
@@ -58,7 +58,7 @@ BEGIN {limidx = 0}
 /^[\t ]*RLIM_NLIMITS[\t ]*=[\t ]*RLIMIT_NLIMITS/ {
     if(!nlimits) { nlimits = limidx }
 }
-/^[\t ]*RLIMIT_NLIMITS[\t ]*=[\t ]*[0-9][0-9]*/ {
+/^[\t ]*RLIM(IT)?_NLIMITS[\t ]*=[\t ]*[0-9][0-9]*/ {
     limindex = index($0, "=")
     limtail = substr($0, limindex, 80)
     split(limtail, tmp)