From b224f94761aebcd623cecb3b1050b89c945d7808 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 30 May 2005 07:05:07 +0000 Subject: [PATCH] (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]: Define to 256, not 255, as per modern POSIX. --- lib/pathmax.h | 4 ++-- src/pathchk.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pathmax.h b/lib/pathmax.h index 48ba92a700..f6a973813f 100644 --- a/lib/pathmax.h +++ b/lib/pathmax.h @@ -1,5 +1,5 @@ /* Define PATH_MAX somehow. Requires sys/types.h. - Copyright (C) 1992, 1999, 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1992, 1999, 2001, 2003, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,7 +30,7 @@ # endif # ifndef _POSIX_PATH_MAX -# define _POSIX_PATH_MAX 255 +# define _POSIX_PATH_MAX 256 # endif # if !defined PATH_MAX && defined _PC_PATH_MAX diff --git a/src/pathchk.c b/src/pathchk.c index 1ef0d04961..e4c0f448fb 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -40,7 +40,7 @@ #define AUTHORS "Paul Eggert", "David MacKenzie", "Jim Meyering" #ifndef _POSIX_PATH_MAX -# define _POSIX_PATH_MAX 255 +# define _POSIX_PATH_MAX 256 #endif #ifndef _POSIX_NAME_MAX # define _POSIX_NAME_MAX 14 -- 2.47.3