From owner-freebsd-bugs Wed Oct 16 22:10:03 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA04355 for bugs-outgoing; Wed, 16 Oct 1996 22:10:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA04349; Wed, 16 Oct 1996 22:10:02 -0700 (PDT) Resent-Date: Wed, 16 Oct 1996 22:10:02 -0700 (PDT) Resent-Message-Id: <199610170510.WAA04349@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, kallio@silmu.cc.jyu.fi Received: from silmu.cc.jyu.fi (root@silmu.cc.jyu.fi [130.234.40.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA04302 for ; Wed, 16 Oct 1996 22:09:04 -0700 (PDT) Received: (from kallio@localhost) by silmu.cc.jyu.fi (8.7.5/8.6.12) id IAA26187; Thu, 17 Oct 1996 08:09:02 +0300 (EET DST) Message-Id: <199610170509.IAA26187@silmu.cc.jyu.fi> Date: Thu, 17 Oct 1996 08:09:02 +0300 (EET DST) From: Seppo Kallio Reply-To: kallio@silmu.cc.jyu.fi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/1828: limit filesize does not work Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1828 >Category: kern >Synopsis: limit filesize does not work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Oct 16 22:10:01 PDT 1996 >Last-Modified: >Originator: Seppo Kallio >Organization: U of Jyväskylä >Release: FreeBSD 2.1.5 >Environment: >Description: limit filesize has no effect in /etc/csh.login, /etc/csh.cshrc Using tcsh. Works if limit is given by user in the shell >How-To-Repeat: 8:02am@silmu:~% limit cputime 1:00:00 filesize unlimited datasize 8192 kbytes stacksize 8192 kbytes coredumpsize 0 kbytes memoryuse 8192 kbytes descriptors 64 memorylocked 41545 kbytes maxproc 40 8:02am@silmu:~% grep limit /etc/csh.* .login .cshrc /etc/csh.cshrc: limit datasize 8m # memory: data + stack /etc/csh.cshrc: limit memoryuse 8m # max virtual memory /etc/csh.cshrc: limit stacksize 8m # stack size /etc/csh.cshrc: limit filesize 10000 /etc/csh.cshrc: limit -h filesize 20000 /etc/csh.cshrc: limit coredumpsize 0 # max core /etc/csh.cshrc: limit cputime 1h # 1 hour /etc/csh.cshrc: limit -h datasize 8m # /etc/csh.cshrc: limit -h cputime 2h /etc/csh.login:limit filesize 10000 grep: .login: No such file or directory 8:03am@silmu:~% limit filesize 10m 8:03am@silmu:~% limit cputime 1:00:00 filesize 10240 kbytes datasize 8192 kbytes stacksize 8192 kbytes coredumpsize 0 kbytes memoryuse 8192 kbytes descriptors 64 memorylocked 41545 kbytes maxproc 40 8:03am@silmu:~% >Fix: >Audit-Trail: >Unformatted: