diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-05-07 18:29:33 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-05-07 18:29:33 +0000 |
commit | 4e88ea446cbc773e8f8633a6fc7bda2c155ed20a (patch) | |
tree | 8bad46b02870c53bc4ed16a654a5d3497a27f9ce /libc/sysdeps | |
parent | e2058fa00790c7e731e08e2a273350bf784c559e (diff) |
Change FILENAME_MAX to be only 255. Max filename on ext2 is 255,
so there is no reason to allocate 4k. Change working of execvep.c
per patch from Matthias Kilian <kili@outback.escape.de> so that there
is not a fixed 127 byte buffer. Too easy to overflow...
-Erik
Diffstat (limited to 'libc/sysdeps')
-rw-r--r-- | libc/sysdeps/linux/arm/bits/stdio_lim.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/i386/bits/stdio_lim.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/m68k/bits/stdio_lim.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/powerpc/bits/stdio_lim.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/bits/stdio_lim.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/sparc/bits/stdio_lim.h | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/arm/bits/stdio_lim.h b/libc/sysdeps/linux/arm/bits/stdio_lim.h index bf79f2062..9787b4358 100644 --- a/libc/sysdeps/linux/arm/bits/stdio_lim.h +++ b/libc/sysdeps/linux/arm/bits/stdio_lim.h @@ -23,7 +23,7 @@ #ifdef _STDIO_H # define L_tmpnam 20 # define TMP_MAX 238328 -# define FILENAME_MAX 4095 +# define FILENAME_MAX 255 # ifdef __USE_POSIX # define L_ctermid 9 diff --git a/libc/sysdeps/linux/i386/bits/stdio_lim.h b/libc/sysdeps/linux/i386/bits/stdio_lim.h index bf79f2062..9787b4358 100644 --- a/libc/sysdeps/linux/i386/bits/stdio_lim.h +++ b/libc/sysdeps/linux/i386/bits/stdio_lim.h @@ -23,7 +23,7 @@ #ifdef _STDIO_H # define L_tmpnam 20 # define TMP_MAX 238328 -# define FILENAME_MAX 4095 +# define FILENAME_MAX 255 # ifdef __USE_POSIX # define L_ctermid 9 diff --git a/libc/sysdeps/linux/m68k/bits/stdio_lim.h b/libc/sysdeps/linux/m68k/bits/stdio_lim.h index bf79f2062..9787b4358 100644 --- a/libc/sysdeps/linux/m68k/bits/stdio_lim.h +++ b/libc/sysdeps/linux/m68k/bits/stdio_lim.h @@ -23,7 +23,7 @@ #ifdef _STDIO_H # define L_tmpnam 20 # define TMP_MAX 238328 -# define FILENAME_MAX 4095 +# define FILENAME_MAX 255 # ifdef __USE_POSIX # define L_ctermid 9 diff --git a/libc/sysdeps/linux/powerpc/bits/stdio_lim.h b/libc/sysdeps/linux/powerpc/bits/stdio_lim.h index bf79f2062..9787b4358 100644 --- a/libc/sysdeps/linux/powerpc/bits/stdio_lim.h +++ b/libc/sysdeps/linux/powerpc/bits/stdio_lim.h @@ -23,7 +23,7 @@ #ifdef _STDIO_H # define L_tmpnam 20 # define TMP_MAX 238328 -# define FILENAME_MAX 4095 +# define FILENAME_MAX 255 # ifdef __USE_POSIX # define L_ctermid 9 diff --git a/libc/sysdeps/linux/sh/bits/stdio_lim.h b/libc/sysdeps/linux/sh/bits/stdio_lim.h index bf79f2062..9787b4358 100644 --- a/libc/sysdeps/linux/sh/bits/stdio_lim.h +++ b/libc/sysdeps/linux/sh/bits/stdio_lim.h @@ -23,7 +23,7 @@ #ifdef _STDIO_H # define L_tmpnam 20 # define TMP_MAX 238328 -# define FILENAME_MAX 4095 +# define FILENAME_MAX 255 # ifdef __USE_POSIX # define L_ctermid 9 diff --git a/libc/sysdeps/linux/sparc/bits/stdio_lim.h b/libc/sysdeps/linux/sparc/bits/stdio_lim.h index bf79f2062..9787b4358 100644 --- a/libc/sysdeps/linux/sparc/bits/stdio_lim.h +++ b/libc/sysdeps/linux/sparc/bits/stdio_lim.h @@ -23,7 +23,7 @@ #ifdef _STDIO_H # define L_tmpnam 20 # define TMP_MAX 238328 -# define FILENAME_MAX 4095 +# define FILENAME_MAX 255 # ifdef __USE_POSIX # define L_ctermid 9 |