[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash using incorrect block size with limits
From: |
Roman Rakus |
Subject: |
bash using incorrect block size with limits |
Date: |
Mon, 02 Jun 2008 15:06:05 +0200 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080501) |
Maybe already reported bug, but
bash is using 1024 bytes block size, but should be using 512 bytes.
I'm including my easy patch.
diff -up bash-3.2/builtins/ulimit.def.blocksize bash-3.2/builtins/ulimit.def
--- bash-3.2/builtins/ulimit.def.blocksize 2008-06-02 14:59:38.000000000
+0200
+++ bash-3.2/builtins/ulimit.def 2008-06-02 15:02:38.000000000 +0200
@@ -199,7 +199,7 @@ typedef struct {
static RESOURCE_LIMITS limits[] = {
#ifdef RLIMIT_CORE
- { 'c', RLIMIT_CORE, 1024, "core file size", "blocks" },
+ { 'c', RLIMIT_CORE, 512, "core file size", "blocks" },
#endif
#ifdef RLIMIT_DATA
{ 'd', RLIMIT_DATA, 1024, "data seg size", "kbytes" },
@@ -207,7 +207,7 @@ static RESOURCE_LIMITS limits[] = {
#ifdef RLIMIT_NICE
{ 'e', RLIMIT_NICE, 1, "scheduling priority", (char *)NULL },
#endif
- { 'f', RLIMIT_FILESIZE, 1024, "file size", "blocks" },
+ { 'f', RLIMIT_FILESIZE, 512, "file size", "blocks" },
#ifdef RLIMIT_SIGPENDING
{ 'i', RLIMIT_SIGPENDING, 1, "pending signals", (char *)NULL },
#endif
rrakus.vcf
Description: Vcard
- bash using incorrect block size with limits,
Roman Rakus <=