[comp.os.os2.programmer] PAX for OS/2 with HPFS

rommel@lan.informatik.tu-muenchen.dbp.de (Kai-Uwe Rommel) (11/05/90)

To make the recently posted (comp.binaries.os2) PAX 2.0 HPFS-compatible,

- change NAME_MAX and PATH_MAX to 255 in limits.h
- change MAXNAMLEN and MAXPATHLEN to 256 in dir.h
- perhaps remove the strlwr() call in dir_os2.c (this preserves case on
  HPFS file names but leaves FAT file names in upper case)
- add NEWFILES to the first line in pax.def

and recompile.

There is another bug showing up with C 6.0:

in list.c, function tar_entry(), change the declaration of mode to
unsigned instead of int:

*** orig/list.c Tue Jan 16 19:23:24 1990
--- list.c	Sun Oct 28 17:25:10 1990
***************
*** 398,404 ****
      struct tm          *atm;
      int			i;
      Link               *link;
!     int                 mode;
  #ifdef S_IFLNK
      char                symnam[PATH_MAX];
  #endif
--- 398,404 ----
      struct tm          *atm;
      int			i;
      Link               *link;
!     unsigned            mode;
  #ifdef S_IFLNK
      char                symnam[PATH_MAX];
  #endif


Kai Uwe Rommel
--
/* Kai Uwe Rommel
 * Munich
 * rommel@lan.informatik.tu-muenchen.dbp.de
 */