From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 30 13:40:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 434CEDF7 for ; Wed, 30 Oct 2013 13:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0DB1221FF; Wed, 30 Oct 2013 13:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9UDe0fb004376; Wed, 30 Oct 2013 13:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9UDe0qu004375; Wed, 30 Oct 2013 13:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 30 Oct 2013 13:40:00 GMT Resent-Message-Id: <201310301340.r9UDe0qu004375@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Cc: kib@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Stefan Neudorf Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6EE66941 for ; Wed, 30 Oct 2013 13:32:34 +0000 (UTC) (envelope-from BM-2cXppXU4T67w7j6NCir9T1WdzBHmFgBnLj@bitmessage.ch) Received: from mail.bitmessage.ch (unknown [IPv6:2002:92e4:70fc::92e4:70fc]) by mx1.freebsd.org (Postfix) with SMTP id D8498217F for ; Wed, 30 Oct 2013 13:32:33 +0000 (UTC) Received: from nil ([127.0.0.1]) by mail.bitmessage.ch ; Wed, 30 Oct 2013 14:31:36 +0100 Message-Id: <20131030.86sivirikl@bitmessage.ch> Date: Wed, 30 Oct 2013 14:31:38 +0100 From: Stefan Neudorf To: FreeBSD-gnats-submit@freebsd.org X-GNATS-Notify: kib@FreeBSD.org Subject: bin/183480: [PATCH] usr.bin/limits: wrong limit name for csh/tcsh X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 13:40:01 -0000 >Number: 183480 >Category: bin >Synopsis: [PATCH] usr.bin/limits: wrong limit name for csh/tcsh >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 30 13:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Stefan Neudorf >Release: >Organization: >Environment: >Description: r194767 added swaplimit to in-tree tcsh. r195609 renamed swaplimit to swapsize. swapuse never existed in tcsh, so eval `limit -e` usage in scripts would never set the limit. >How-To-Repeat: > limit swapuse 5 limit: No such limit. > limits -e -w 5k limit -h swapuse 5; limit swapuse 5; >Fix: --- swapsize_csh_limit.diff begins here --- Index: usr.bin/limits/limits.c =================================================================== --- usr.bin/limits/limits.c (revision 257346) +++ usr.bin/limits/limits.c (working copy) @@ -125,7 +125,7 @@ static struct { { "limit%s sbsize %s", ";\n", 1 }, { "limit%s vmemoryuse %s", ";\n", 1024 }, { "limit%s pseudoterminals %s", ";\n", 1 }, - { "limit%s swapuse %s", ";\n", 1024 }, + { "limit%s swapsize %s", ";\n", 1024 }, { "limit%s kqueues %s", ";\n", 1 }, } }, @@ -160,7 +160,7 @@ static struct { { "limit%s sbsize %s", ";\n", 1 }, { "limit%s vmemoryuse %s", ";\n", 1024 }, { "limit%s pseudoterminals %s", ";\n", 1 }, - { "limit%s swapuse %s", ";\n", 1024 }, + { "limit%s swapsize %s", ";\n", 1024 }, { "limit%s kqueues %s", ";\n", 1 }, } }, --- swapsize_csh_limit.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: