Subject: CVS commit: syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 11/23/2001 20:56:33
Module Name:	syssrc
Committed By:	jdolecek
Date:		Fri Nov 23 18:56:33 UTC 2001

Modified Files:
	syssrc/sys/kern: kern_resource.c

Log Message:
Two changes to setrlimit(2):
* return EINVAL if new current (soft) limit is lower than hard limit.
  This behaviour is required by SUSv2 (noted by Giles Lean on tech-kern)
* return EINVAL if an attempt is made to lower stack size limit below
  current usage; this addresses bin/3045 by Jason Thorpe, and conforms to SUSv2


To generate a diff of this commit:
cvs rdiff -r1.61 -r1.62 syssrc/sys/kern/kern_resource.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.