sbsize should be parsed as R_CSIZE so that suffixes work correctly.
Fix from Christian Biere in PR [lib/25504]. (XXX: the R_CSIZE parsing should be changed to using strsuftollx(3))
This commit is contained in:
parent
08e9a66ef3
commit
2ebcc58148
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: login_cap.c,v 1.17 2004/04/23 15:23:26 christos Exp $ */
|
||||
/* $NetBSD: login_cap.c,v 1.18 2004/05/09 23:28:11 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1995,1997 Berkeley Software Design, Inc. All rights reserved.
|
||||
|
@ -36,7 +36,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: login_cap.c,v 1.17 2004/04/23 15:23:26 christos Exp $");
|
||||
__RCSID("$NetBSD: login_cap.c,v 1.18 2004/05/09 23:28:11 lukem Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -425,7 +425,7 @@ static struct {
|
|||
{ RLIMIT_NPROC, R_CNUMB, "maxproc", },
|
||||
{ RLIMIT_NOFILE, R_CNUMB, "openfiles", },
|
||||
{ RLIMIT_CORE, R_CSIZE, "coredumpsize", },
|
||||
{ RLIMIT_SBSIZE, R_CNUMB, "sbsize", },
|
||||
{ RLIMIT_SBSIZE, R_CSIZE, "sbsize", },
|
||||
{ -1, 0, 0 }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue