sharutils-4.2.1

初め次のように書いたのですが

To: gnats-bugs@gnats.netbsd.org, lib-bug-people@netbsd.org Subject: Re: lib/8912: sharutils-4.2, sharutils-4.1 core dumps at vfprintf () From: Makoto Fujiwara Reply-To: makoto.fujiwara@OnSemi.com In-Reply-To: <19991129005700.16345.qmail@mail.netbsd.org> References: <199911290056.JAA11246@fujiwara.sps.mot.com> <19991129005700.16345.qmail@mail.netbsd.org> X-Face: %{9B8A;;46J-!*nx-Cd8z*g}rH'x8liNOwWoSCEFDFe.+"~zj32d0g0,$y[Z:aX7Y^U&t5* lGzCI]kY Date: Mon, 29 Nov 1999 12:03:57 +0900 Sender: Makoto Fujiwara X-Dispatcher: imput version 991025(IM133) Resent-Message-Id: <19991129120636G.makoto@fujiwara.sps.mot.com> Resent-Date: Mon, 29 Nov 1999 12:06:36 +0900 Resent-Sender: Makoto Fujiwara X-Resent-Dispatcher: imput version 991025(IM133) Lines: 42 Unbelievably ( to myself ), following patch stops core dumps. but still has problem showing the length of the file. # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 0 -rw-r--r-- gs-Makefile.patch # 0 -rw-r--r-- gs-gxxfvf.c-patch # 0 -rw-r--r-- gs-gxxfvf.c-patch-VF_Init # --- sharutils-4.2.1/src/shar.c-o Sat Sep 11 04:20:41 1999 +++ sharutils-4.2.1/src/shar.c Mon Nov 29 11:57:57 1999 @@ -451,6 +451,7 @@ if (mode & 00001) result[9] = 'x'; + result[10] = NULL; return result; } @@ -696,8 +697,11 @@ const char *local_name; const char *restore_name; { - fprintf (output, "# %6ld %s %s\n", struct_stat.st_size, - mode_string (struct_stat.st_mode), restore_name); + /* fprintf (output, "# %6ld %s %s\n", struct_stat.st_size, + mode_string (struct_stat.st_mode), restore_name); */ + fprintf (output, "# %6ld ", struct_stat.st_size); + fprintf (output, "%s ", mode_string (struct_stat.st_mode)); + fprintf (output, "%s\n", restore_name); return 0; } --- (Makoto Fujiwara)
次のようにすればいいということが分りまし た。
--- sharutils-4.2.1/src/shar.c-ooo Sat Sep 11 04:20:41 1999 +++ sharutils-4.2.1/src/shar.c Wed Dec 1 00:09:01 1999 @@ -696,7 +696,7 @@ 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; }

Last Update
19:52:40 03/12/08
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Apache/2.0.65 (Unix) mod_ssl/2.0.65 OpenSSL/1.0.1g DAV/2 PHP/5.4.26
Count.cgi
(since 1999/10/17)