bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sharutils-4.3.61 fails on FreeBSD


From: Bruno Haible
Subject: sharutils-4.3.61 fails on FreeBSD
Date: Mon, 15 Jul 2002 14:35:59 +0200 (CEST)

Hi,

sharutils-4.3.61 fails to pass the testsuite on FreeBSD with glibc2.

PASS: uutest-1
9c9
< #     15 -rw-r--r-- shar-1.in
---
> #     15 (null) -rw-r--r--
FAIL: shar-1

The reason is that a 'long long' object is passed to fprintf with a "%ld"
directive. (gcc-3.1 warns about it.) Here is a fix.

2002-07-14  Bruno Haible  <address@hidden>

        * src/shar.c (generate_one_header_line): Cast file size to long; it
        could be a 'long long'.

*** sharutils-4.3.61/src/shar.c.bak     Mon Jul  1 17:45:18 2002
--- sharutils-4.3.61/src/shar.c Sun Jul 14 17:59:40 2002
***************
*** 706,712 ****
       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);
    return 0;
  }
--- 706,712 ----
       const char *local_name;
       const char *restore_name;
  {
!   fprintf (output, "# %6ld %s %s\n", (long) struct_stat.st_size,
           mode_string (struct_stat.st_mode), restore_name);
    return 0;
  }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]