diff options
author | peter <peter@FreeBSD.org> | 1996-08-16 22:38:17 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-16 22:38:17 +0800 |
commit | c4e85665c6a394eb99f9d97a9cd01ef723883d6d (patch) | |
tree | e70dbf8d9275baa659a6c82ba9e069e78585f460 /archivers/sharutils/files | |
parent | 4ea3582352c0c9233a95f5661c844df49803efde (diff) | |
download | freebsd-ports-gnome-c4e85665c6a394eb99f9d97a9cd01ef723883d6d.tar.gz freebsd-ports-gnome-c4e85665c6a394eb99f9d97a9cd01ef723883d6d.tar.zst freebsd-ports-gnome-c4e85665c6a394eb99f9d97a9cd01ef723883d6d.zip |
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. ;-)
Diffstat (limited to 'archivers/sharutils/files')
-rw-r--r-- | archivers/sharutils/files/patch-ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/archivers/sharutils/files/patch-ac b/archivers/sharutils/files/patch-ac new file mode 100644 index 000000000000..7b018fe3a867 --- /dev/null +++ b/archivers/sharutils/files/patch-ac @@ -0,0 +1,11 @@ +--- 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; + } |