Subject: kern/14968: tcsh's "unlimit" doesn't work for "root" any more
To: None <>
From: Matthias Scheler <>
List: netbsd-bugs
Date: 12/16/2001 23:21:53
>Number:         14968
>Category:       kern
>Synopsis:       tcsh's "unlimit" doesn't work for "root" any more
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 16 14:22:00 PST 2001
>Release:        NetBSD 1.5Z 2001-12-16 sources
Matthias Scheler                        
System: NetBSD 1.5Z NetBSD 1.5Z (LYSSA) #0: Sun Dec 16 13:53:22 CET 2001 i386
Architecture: i386
Machine: i386

The "unlimit" command in "tcsh" got somehow broken in NetBSD-current for
the "root" account:

tron@lyssa:~>limit datasize
datasize        131072 kbytes
tron@lyssa:~>unlimit datasize
tron@lyssa:~>limit datasize
datasize        1048576 kbytes
tron@lyssa:~tron#limit datasize
datasize        1048576 kbytes
tron@lyssa:~tron#unlimit datasize
unlimit: datasize: Can't remove limit

Setting the limit with "limit datasize 1048576" manually works fine.
The bug is not i386 specific, Martin Huseman can reproduce it on a
sparc64 system.

exec tcsh
unlimit datasize

None provided.