summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-05-30 07:05:07 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-05-30 07:05:07 +0000
commitb224f94761aebcd623cecb3b1050b89c945d7808 (patch)
tree5b6e82451a86c5789e06809aaa22e66990157b91
parent47db304b3c7e527816c392f200c342a373e79bb8 (diff)
downloadcoreutils-b224f94761aebcd623cecb3b1050b89c945d7808.tar.xz
(_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
Define to 256, not 255, as per modern POSIX.
-rw-r--r--lib/pathmax.h4
-rw-r--r--src/pathchk.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/pathmax.h b/lib/pathmax.h
index 48ba92a70..f6a973813 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 1ef0d0496..e4c0f448f 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