openpkg/tar.patch

changeset 13
cb59d6afeb61
child 250
bda4f5eec616
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/openpkg/tar.patch	Tue Jan 06 23:40:39 2009 +0100
     1.3 @@ -0,0 +1,109 @@
     1.4 +Index: Makefile.in
     1.5 +--- Makefile.in.orig	2007-10-10 13:00:22 +0200
     1.6 ++++ Makefile.in	2007-10-17 08:40:12 +0200
     1.7 +@@ -485,7 +485,7 @@
     1.8 + target_alias = @target_alias@
     1.9 + ACLOCAL_AMFLAGS = -I m4
    1.10 + EXTRA_DIST = ChangeLog.1 PORTS
    1.11 +-SUBDIRS = doc lib rmt src scripts po tests
    1.12 ++SUBDIRS = doc lib src
    1.13 + all: config.h
    1.14 + 	$(MAKE) $(AM_MAKEFLAGS) all-recursive
    1.15 + 
    1.16 +Index: lib/argp-help.c
    1.17 +--- lib/argp-help.c.orig	2007-09-28 15:11:36 +0200
    1.18 ++++ lib/argp-help.c	2007-10-17 08:40:12 +0200
    1.19 +@@ -570,8 +570,7 @@
    1.20 +   return val;
    1.21 + }
    1.22 + 
    1.23 +-static inline int
    1.24 +-__attribute__ ((always_inline))
    1.25 ++static int
    1.26 + hol_entry_long_iterate (const struct hol_entry *entry,
    1.27 + 			int (*func)(const struct argp_option *opt,
    1.28 + 				    const struct argp_option *real,
    1.29 +Index: src/compare.c
    1.30 +--- src/compare.c.orig	2007-08-26 10:56:55 +0200
    1.31 ++++ src/compare.c	2007-10-17 08:40:12 +0200
    1.32 +@@ -278,7 +278,7 @@
    1.33 +   size_t len = strlen (current_stat_info.link_name);
    1.34 +   char *linkbuf = alloca (len + 1);
    1.35 + 
    1.36 +-  int status = readlink (current_stat_info.file_name, linkbuf, len + 1);
    1.37 ++  int status = readlink (current_stat_info.file_name, linkbuf, len);
    1.38 + 
    1.39 +   if (status < 0)
    1.40 +     {
    1.41 +Index: src/create.c
    1.42 +--- src/create.c.orig	2007-10-05 19:46:49 +0200
    1.43 ++++ src/create.c	2007-10-17 08:40:12 +0200
    1.44 +@@ -1696,7 +1696,7 @@
    1.45 +       if (linklen != st->stat.st_size || linklen + 1 == 0)
    1.46 + 	xalloc_die ();
    1.47 +       buffer = (char *) alloca (linklen + 1);
    1.48 +-      size = readlink (p, buffer, linklen + 1);
    1.49 ++      size = readlink (p, buffer, linklen);
    1.50 +       if (size < 0)
    1.51 + 	{
    1.52 + 	  readlink_diag (p);
    1.53 +Index: src/incremen.c
    1.54 +--- src/incremen.c.orig	2007-10-01 23:19:55 +0200
    1.55 ++++ src/incremen.c	2007-10-17 08:40:12 +0200
    1.56 +@@ -526,6 +526,7 @@
    1.57 +            children = CHANGED_CHILDREN;
    1.58 + 	 but changed to: */
    1.59 +       free (name_buffer);
    1.60 ++      if (dirp)
    1.61 +       free (dirp);
    1.62 +       return NULL;
    1.63 +     }
    1.64 +Index: src/tar.c
    1.65 +--- src/tar.c.orig	2007-09-26 23:36:58 +0200
    1.66 ++++ src/tar.c	2007-10-17 08:40:12 +0200
    1.67 +@@ -20,6 +20,7 @@
    1.68 +    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
    1.69 + 
    1.70 + #include <system.h>
    1.71 ++#include <locale.h>
    1.72 + 
    1.73 + #include <fnmatch.h>
    1.74 + #include <argp.h>
    1.75 +Index: src/utf8.c
    1.76 +--- src/utf8.c.orig	2007-06-27 15:30:32 +0200
    1.77 ++++ src/utf8.c	2007-10-17 08:40:12 +0200
    1.78 +@@ -22,6 +22,9 @@
    1.79 + #include "common.h"
    1.80 + #ifdef HAVE_ICONV_H
    1.81 + # include <iconv.h>
    1.82 ++#else
    1.83 ++# define iconv_t void *
    1.84 ++# define ICONV_CONST const
    1.85 + #endif
    1.86 + 
    1.87 + #ifndef ICONV_CONST
    1.88 +Index: src/xheader.c
    1.89 +--- src/xheader.c.orig	2007-06-27 15:30:32 +0200
    1.90 ++++ src/xheader.c	2007-10-17 08:40:12 +0200
    1.91 +@@ -27,6 +27,10 @@
    1.92 + 
    1.93 + #include <fnmatch.h>
    1.94 + 
    1.95 ++#ifndef SIZE_MAX
    1.96 ++# define SIZE_MAX ((size_t) -1)
    1.97 ++#endif
    1.98 ++
    1.99 + static bool xheader_protected_pattern_p (char const *pattern);
   1.100 + static bool xheader_protected_keyword_p (char const *keyword);
   1.101 + static void xheader_set_single_keyword (char *) __attribute__ ((noreturn));
   1.102 +Index: lib/strerror.c
   1.103 +--- lib/strerror.c.orig	2007-09-28 15:11:37 +0200
   1.104 ++++ lib/strerror.c	2007-10-18 00:55:28 +0200
   1.105 +@@ -23,6 +23,7 @@
   1.106 + 
   1.107 + # include <string.h>
   1.108 + # include <stdio.h>
   1.109 ++# include <limits.h>
   1.110 + 
   1.111 + # undef strerror
   1.112 + 

mercurial