From briano@loc201.tandem.com Tue Feb 17 19:27:32 1998
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id TAA27270 for <bugs@RT-11.MIT.EDU>; Tue, 17 Feb 1998 19:27:32 -0500
Received: from suntan.tandem.com by MIT.EDU with SMTP
id AA18360; Tue, 17 Feb 98 19:27:49 EST
Received: from adm.loc201.tandem.com ([155.186.68.56])
by Tandem.com (8.8.8/2.0.1) with SMTP id QAA10764;
Tue, 17 Feb 1998 16:27:29 -0800 (PST)
Received: from hawkowl.loc201.tandem.com by adm.loc201.tandem.com (4.1/6main.940209)
id AA02138; Tue, 17 Feb 98 16:27:22 PST
Received: by hawkowl.loc201.tandem.com (5.x/6nospool.940209)
id AA28563; Tue, 17 Feb 1998 16:24:04 -0800
Message-Id: <9802180024.AA28563@hawkowl.loc201.tandem.com>
Date: Tue, 17 Feb 1998 16:24:04 -0800
From: oconnor_brian@tandem.com
Reply-To: oconnor_brian@tandem.com
To: krb5-bugs@MIT.EDU
Cc: oconnor_brian@tandem.com
Subject: Enhancement: use POSIX.1 PATH_MAX when MAXPATHLEN unavailable
X-Send-Pr-Version: 3.99
NonStop Kernel operating system
NonStop Kernel Open System Services environment
System: NONSTOP_KERNEL safe D45 00 NSR-N
Architecture: mips-tandem
do not define the BSD UNIX MAXPATHLEN preprocessor symbol.
that lacks BSD UNIX features (such as the NonStop Kernel).
is undefined.
diff -brcd krb5-1.0.4/src/include/ChangeLog patch2/include/ChangeLog
*** krb5-1.0.4/src/include/ChangeLog Thu Dec 4 19:42:41 1997
--- patch2/include/ChangeLog Tue Feb 17 16:21:50 1998
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Feb 17 21:00:00 1998 Brian O'Connor <oconnor_brian@tandem.com>
+
+ * k5-int.h: Use the POSIX.1 PATH_MAX preprocessor symbol when
+ the BSD UNIX MAXPATHLEN preprocessor symbol is undefined.
+
Sat Nov 23 00:16:46 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* k5-int.h: Remove DES3 and SHA support, since what's there isn't
diff -brcd krb5-1.0.4/src/include/k5-int.h patch2/include/k5-int.h
*** krb5-1.0.4/src/include/k5-int.h Thu Dec 4 19:42:41 1997
--- patch2/include/k5-int.h Tue Feb 17 15:51:08 1998
***************
*** 632,637 ****
--- 632,642 ----
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> /* MAXPATHLEN */
#endif
+ #ifndef MAXPATHLEN
+ /* Use POSIX.1 definition if <sys/param.h> doesn't define MAXPATHLEN */
+ #include <limits.h>
+ #define MAXPATHLEN PATH_MAX
+ #endif
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h> /* prototypes for file-related
diff -brcd krb5-1.0.4/src/include/kerberosIV/ChangeLog patch2/include/kerberosIV/ChangeLog
*** krb5-1.0.4/src/include/kerberosIV/ChangeLog Thu Dec 4 19:42:42 1997
--- patch2/include/kerberosIV/ChangeLog Tue Feb 17 16:19:31 1998
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Feb 17 21:00:00 1998 Brian O'Connor <oconnor_brian@tandem.com>
+
+ * krb.h: Use the POSIX.1 PATH_MAX preprocessor symbol when
+ the BSD UNIX MAXPATHLEN preprocessor symbol is undefined.
+
Fri Nov 22 11:34:46 1996 Sam Hartman <hartmans@mit.edu>
* Makefile.in: Install krb_err.h [218]
diff -brcd krb5-1.0.4/src/include/kerberosIV/krb.h patch2/include/kerberosIV/krb.h
*** krb5-1.0.4/src/include/kerberosIV/krb.h Thu Dec 4 19:42:44 1997
--- patch2/include/kerberosIV/krb.h Tue Feb 17 15:56:24 1998
***************
*** 426,431 ****
--- 426,436 ----
#include <time.h> /* For localtime, etc */
#endif
#endif
+ #ifndef MAXPATHLEN
+ #include <limits.h>
+ #define MAXPATHLEN PATH_MAX
+ #endif
+
/*
* Compatability with WinSock calls on MS-Windows...
*/
diff -brcd krb5-1.0.4/src/util/db2/include/ChangeLog patch2/util/db2/include/ChangeLog
*** krb5-1.0.4/src/util/db2/include/ChangeLog Thu Dec 4 19:47:12 1997
--- patch2/util/db2/include/ChangeLog Tue Feb 17 16:20:30 1998
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Feb 17 21:00:00 1998 Brian O'Connor <oconnor_brian@tandem.com>
+
+ * db-int.h: Use the POSIX.1 PATH_MAX preprocessor symbol when
+ the BSD UNIX MAXPATHLEN preprocessor symbol is undefined.
+
Thu Aug 15 15:41:12 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* db-ndbm.h: Add prototypes for missing functions dbm_error() and
diff -brcd krb5-1.0.4/src/util/db2/include/db-int.h patch2/util/db2/include/db-int.h
*** krb5-1.0.4/src/util/db2/include/db-int.h Thu Dec 4 19:47:12 1997
--- patch2/util/db2/include/db-int.h Tue Feb 17 15:58:32 1998
***************
*** 76,81 ****
--- 76,85 ----
#include <sys/stat.h>
#include <sys/param.h>
+ #ifndef MAXPATHLEN
+ #define MAXPATHLEN PATH_MAX
+ #endif
+
/* types and constants used for database structure */
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */
diff -brcd krb5-1.0.4/src/util/ss/ChangeLog patch2/util/ss/ChangeLog
*** krb5-1.0.4/src/util/ss/ChangeLog Thu Dec 4 19:47:41 1997
--- patch2/util/ss/ChangeLog Tue Feb 17 16:20:58 1998
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Feb 17 21:00:00 1998 Brian O'Connor <oconnor_brian@tandem.com>
+
+ * help.c: Use the POSIX.1 PATH_MAX preprocessor symbol when
+ the BSD UNIX MAXPATHLEN preprocessor symbol is undefined.
+
Thu Jun 13 21:43:44 1996 Tom Yu <tlyu@voltage-multiplier.mit.edu>
* configure.in: remove ref to SS_RULES, ET_RULES
diff -brcd krb5-1.0.4/src/util/ss/help.c patch2/util/ss/help.c
*** krb5-1.0.4/src/util/ss/help.c Thu Dec 4 19:47:42 1997
--- patch2/util/ss/help.c Tue Feb 17 15:57:01 1998
***************
*** 5,10 ****
--- 5,15 ----
*/
#include <sys/param.h>
+ #ifndef MAXPATHLEN
+ #include <limits.h>
+ #define MAXPATHLEN PATH_MAX
+ #endif
+
#include <sys/types.h>
#include <sys/file.h>
#include <fcntl.h> /* just for O_* */
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id TAA27270 for <bugs@RT-11.MIT.EDU>; Tue, 17 Feb 1998 19:27:32 -0500
Received: from suntan.tandem.com by MIT.EDU with SMTP
id AA18360; Tue, 17 Feb 98 19:27:49 EST
Received: from adm.loc201.tandem.com ([155.186.68.56])
by Tandem.com (8.8.8/2.0.1) with SMTP id QAA10764;
Tue, 17 Feb 1998 16:27:29 -0800 (PST)
Received: from hawkowl.loc201.tandem.com by adm.loc201.tandem.com (4.1/6main.940209)
id AA02138; Tue, 17 Feb 98 16:27:22 PST
Received: by hawkowl.loc201.tandem.com (5.x/6nospool.940209)
id AA28563; Tue, 17 Feb 1998 16:24:04 -0800
Message-Id: <9802180024.AA28563@hawkowl.loc201.tandem.com>
Date: Tue, 17 Feb 1998 16:24:04 -0800
From: oconnor_brian@tandem.com
Reply-To: oconnor_brian@tandem.com
To: krb5-bugs@MIT.EDU
Cc: oconnor_brian@tandem.com
Subject: Enhancement: use POSIX.1 PATH_MAX when MAXPATHLEN unavailable
X-Send-Pr-Version: 3.99
Show quoted text
>Number: 551
>Category: krb5-build
>Synopsis: Use POSIX.1 PATH_MAX when MAXPATHLEN is undefined
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: tlyu
>State: open
>Class: change-request
>Submitter-Id: unknown
>Arrival-Date: Tue Feb 17 19:28:03 EST 1998
>Last-Modified:
>Originator: oconnor_brian
>Organization:
>Category: krb5-build
>Synopsis: Use POSIX.1 PATH_MAX when MAXPATHLEN is undefined
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: tlyu
>State: open
>Class: change-request
>Submitter-Id: unknown
>Arrival-Date: Tue Feb 17 19:28:03 EST 1998
>Last-Modified:
>Originator: oconnor_brian
>Organization:
Show quoted text
>Release: krb5-1.0.4
>Environment:
Tandem Himalaya and Tandem Sierra (mips-tandem)>Environment:
NonStop Kernel operating system
NonStop Kernel Open System Services environment
System: NONSTOP_KERNEL safe D45 00 NSR-N
Architecture: mips-tandem
Show quoted text
>Description:
Kerberos V5 source fails to compile on POSIX.1 systems thatdo not define the BSD UNIX MAXPATHLEN preprocessor symbol.
Show quoted text
>How-To-Repeat:
Attempt to compile Kerberos V5 source on a POSIX.1 systemthat lacks BSD UNIX features (such as the NonStop Kernel).
Show quoted text
>Fix:
Use the POSIX.1 PATH_MAX preprocessor symbol when MAXPATHLENis undefined.
diff -brcd krb5-1.0.4/src/include/ChangeLog patch2/include/ChangeLog
*** krb5-1.0.4/src/include/ChangeLog Thu Dec 4 19:42:41 1997
--- patch2/include/ChangeLog Tue Feb 17 16:21:50 1998
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Feb 17 21:00:00 1998 Brian O'Connor <oconnor_brian@tandem.com>
+
+ * k5-int.h: Use the POSIX.1 PATH_MAX preprocessor symbol when
+ the BSD UNIX MAXPATHLEN preprocessor symbol is undefined.
+
Sat Nov 23 00:16:46 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* k5-int.h: Remove DES3 and SHA support, since what's there isn't
diff -brcd krb5-1.0.4/src/include/k5-int.h patch2/include/k5-int.h
*** krb5-1.0.4/src/include/k5-int.h Thu Dec 4 19:42:41 1997
--- patch2/include/k5-int.h Tue Feb 17 15:51:08 1998
***************
*** 632,637 ****
--- 632,642 ----
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> /* MAXPATHLEN */
#endif
+ #ifndef MAXPATHLEN
+ /* Use POSIX.1 definition if <sys/param.h> doesn't define MAXPATHLEN */
+ #include <limits.h>
+ #define MAXPATHLEN PATH_MAX
+ #endif
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h> /* prototypes for file-related
diff -brcd krb5-1.0.4/src/include/kerberosIV/ChangeLog patch2/include/kerberosIV/ChangeLog
*** krb5-1.0.4/src/include/kerberosIV/ChangeLog Thu Dec 4 19:42:42 1997
--- patch2/include/kerberosIV/ChangeLog Tue Feb 17 16:19:31 1998
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Feb 17 21:00:00 1998 Brian O'Connor <oconnor_brian@tandem.com>
+
+ * krb.h: Use the POSIX.1 PATH_MAX preprocessor symbol when
+ the BSD UNIX MAXPATHLEN preprocessor symbol is undefined.
+
Fri Nov 22 11:34:46 1996 Sam Hartman <hartmans@mit.edu>
* Makefile.in: Install krb_err.h [218]
diff -brcd krb5-1.0.4/src/include/kerberosIV/krb.h patch2/include/kerberosIV/krb.h
*** krb5-1.0.4/src/include/kerberosIV/krb.h Thu Dec 4 19:42:44 1997
--- patch2/include/kerberosIV/krb.h Tue Feb 17 15:56:24 1998
***************
*** 426,431 ****
--- 426,436 ----
#include <time.h> /* For localtime, etc */
#endif
#endif
+ #ifndef MAXPATHLEN
+ #include <limits.h>
+ #define MAXPATHLEN PATH_MAX
+ #endif
+
/*
* Compatability with WinSock calls on MS-Windows...
*/
diff -brcd krb5-1.0.4/src/util/db2/include/ChangeLog patch2/util/db2/include/ChangeLog
*** krb5-1.0.4/src/util/db2/include/ChangeLog Thu Dec 4 19:47:12 1997
--- patch2/util/db2/include/ChangeLog Tue Feb 17 16:20:30 1998
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Feb 17 21:00:00 1998 Brian O'Connor <oconnor_brian@tandem.com>
+
+ * db-int.h: Use the POSIX.1 PATH_MAX preprocessor symbol when
+ the BSD UNIX MAXPATHLEN preprocessor symbol is undefined.
+
Thu Aug 15 15:41:12 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* db-ndbm.h: Add prototypes for missing functions dbm_error() and
diff -brcd krb5-1.0.4/src/util/db2/include/db-int.h patch2/util/db2/include/db-int.h
*** krb5-1.0.4/src/util/db2/include/db-int.h Thu Dec 4 19:47:12 1997
--- patch2/util/db2/include/db-int.h Tue Feb 17 15:58:32 1998
***************
*** 76,81 ****
--- 76,85 ----
#include <sys/stat.h>
#include <sys/param.h>
+ #ifndef MAXPATHLEN
+ #define MAXPATHLEN PATH_MAX
+ #endif
+
/* types and constants used for database structure */
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */
diff -brcd krb5-1.0.4/src/util/ss/ChangeLog patch2/util/ss/ChangeLog
*** krb5-1.0.4/src/util/ss/ChangeLog Thu Dec 4 19:47:41 1997
--- patch2/util/ss/ChangeLog Tue Feb 17 16:20:58 1998
***************
*** 1,3 ****
--- 1,8 ----
+ Tue Feb 17 21:00:00 1998 Brian O'Connor <oconnor_brian@tandem.com>
+
+ * help.c: Use the POSIX.1 PATH_MAX preprocessor symbol when
+ the BSD UNIX MAXPATHLEN preprocessor symbol is undefined.
+
Thu Jun 13 21:43:44 1996 Tom Yu <tlyu@voltage-multiplier.mit.edu>
* configure.in: remove ref to SS_RULES, ET_RULES
diff -brcd krb5-1.0.4/src/util/ss/help.c patch2/util/ss/help.c
*** krb5-1.0.4/src/util/ss/help.c Thu Dec 4 19:47:42 1997
--- patch2/util/ss/help.c Tue Feb 17 15:57:01 1998
***************
*** 5,10 ****
--- 5,15 ----
*/
#include <sys/param.h>
+ #ifndef MAXPATHLEN
+ #include <limits.h>
+ #define MAXPATHLEN PATH_MAX
+ #endif
+
#include <sys/types.h>
#include <sys/file.h>
#include <fcntl.h> /* just for O_* */
Show quoted text
>Audit-Trail:
>Unformatted:
>Unformatted: