about summary refs log tree commit diff
path: root/Src/Builtins
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-10-22 08:42:37 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-10-22 08:42:37 -0700
commit2d4743ce50ba0ae50c0cfa1404a163dbd61ad446 (patch)
tree74ad13d21b0fc6e6ac5b941b70fdbfb0bef83478 /Src/Builtins
parent2ecc4bab417e1d67516e7fc5b94904daa3e32c3f (diff)
downloadzsh-2d4743ce50ba0ae50c0cfa1404a163dbd61ad446.tar.gz
zsh-2d4743ce50ba0ae50c0cfa1404a163dbd61ad446.tar.xz
zsh-2d4743ce50ba0ae50c0cfa1404a163dbd61ad446.zip
33493: use correct command name in error messages about "ulimit" failure; restore internal copy of limits if setrlimit() fails, so the error won't repeat
Diffstat (limited to 'Src/Builtins')
-rw-r--r--Src/Builtins/rlimits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Builtins/rlimits.c b/Src/Builtins/rlimits.c
index 9da31831d..85ec1811c 100644
--- a/Src/Builtins/rlimits.c
+++ b/Src/Builtins/rlimits.c
@@ -518,7 +518,7 @@ do_limit(char *nam, int lim, rlim_t val, int hard, int soft, int set)
 		}
 	    } else
 		limits[lim].rlim_cur = val;
-	    if (set && zsetlimit(lim, "limit"))
+	    if (set && zsetlimit(lim, nam))
 		return 1;
 	}
     }