1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/archivers/gshar+gunshar/files/patch-ac
Peter Wemm 7aa4521121 Fix shar so that it doesn't generate:
# This shar contains:
  # length mode       name
  # ------ ---------- ------------------------------------------
  #   9525 (null) -rw-r--r--
  #   3768 (null) -rw-r--r--
	  ^^^^^^^^^^^
This is a long/off_t printf problem.

The only problem with doing this, is that touching the sources with patch
causes it to want to go and regenerate it's locale databases using some
gnu tools I've never heard of before. :-(  Since patch-ac doesn't actually
change any messages, I've cheated and touched the dependency files in
post-patch.  Please, no pukeing, I know it's a gross hack. ;-)
1996-08-16 14:38:17 +00:00

12 lines
384 B
Plaintext

--- shar.c.dist Fri Aug 16 22:19:04 1996
+++ shar.c Fri Aug 16 22:19:36 1996
@@ -589,7 +589,7 @@
static int
generate_one_header_line (const char *local_name, const char *restore_name)
{
- fprintf (output, "# %6ld %s %s\n", struct_stat.st_size,
+ fprintf (output, "# %6ld %s %s\n", (long)struct_stat.st_size,
mode_string (struct_stat.st_mode), restore_name);
return 0;
}