From 1cdcf9df88144049750116e36fe20c8c39fa2517 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 19 Jul 2018 11:00:13 -0700 Subject: [PATCH] Allow bigger filenames Not that I know why. 80-character filename limits are kind of cute. Joerg suggested _POSIX_PATH_MAX, which is almost certainly the right value. But that's bigger than HUGE: #define HUGE 1000 /* Huge number */ which obviously means we shouldn't go quite *that* extreme. Remember, we come from the days when it was hard to do allocations larger than 64kB. We have limits, dammit. "256 bytes is enough for anybody" Reported-by: Joerg Scheurich Signed-off-by: Linus Torvalds --- estruct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/estruct.h b/estruct.h index 8240f78..bcef6d8 100644 --- a/estruct.h +++ b/estruct.h @@ -226,7 +226,7 @@ /* Internal constants. */ #define NBINDS 256 /* max # of bound keys */ -#define NFILEN 80 /* # of bytes, file name */ +#define NFILEN 256 /* # of bytes, file name */ #define NBUFN 16 /* # of bytes, buffer name */ #define NLINE 256 /* # of bytes, input line */ #define NSTRING 128 /* # of bytes, string buffers */