]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 May 2005 07:05:07 +0000 (07:05 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 May 2005 07:05:07 +0000 (07:05 +0000)
Define to 256, not 255, as per modern POSIX.

lib/pathmax.h
src/pathchk.c

index 48ba92a700ebd91060fff387d0715f27cc46eca2..f6a973813fddba818bbd23896c49a06b71eceab5 100644 (file)
@@ -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
index 1ef0d049617b95354f72f77ac1f57d67564c21ee..e4c0f448fbb819503de59aa6b89db427565186b8 100644 (file)
@@ -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