Subject: kern/14968: tcsh's "unlimit" doesn't work for "root" any more
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthias Scheler <tron@colwyn.zhadum.de>
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
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5Z 2001-12-16 sources
>Organization:
Matthias Scheler                                  http://scheler.de/~matthias/
>Environment:
System: NetBSD lyssa.zhadum.de 1.5Z NetBSD 1.5Z (LYSSA) #0: Sun Dec 16 13:53:22 CET 2001 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386

>Description:
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:~>su
Password:
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.

>How-To-Repeat:
su
exec tcsh
unlimit datasize

>Fix:
None provided.

>Release-Note:
>Audit-Trail:
>Unformatted: