[2880] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-build/551: Enhancement: use POSIX.1 PATH_MAX when MAXPATHLEN unavailable

daemon@ATHENA.MIT.EDU (oconnor_brian@tandem.com)
Tue Feb 17 19:28:18 1998

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: tlyu@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, oconnor_brian@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


>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:

>Release:        krb5-1.0.4
>Environment:
	Tandem Himalaya and Tandem Sierra (mips-tandem)
	NonStop Kernel operating system
	NonStop Kernel Open System Services environment
System: NONSTOP_KERNEL safe D45 00 NSR-N
Architecture: mips-tandem

>Description:
	Kerberos V5 source fails to compile on POSIX.1 systems that
	do not define the BSD UNIX MAXPATHLEN preprocessor symbol.
>How-To-Repeat:
	Attempt to compile Kerberos V5 source on a POSIX.1 system
	that lacks BSD UNIX features (such as the NonStop Kernel).
>Fix:
	Use the POSIX.1 PATH_MAX preprocessor symbol when MAXPATHLEN
	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_* */
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post