• Patch: Elm ME+ 2.5 PLalpha53 -> Elm ME+ 2.5 PLalpha54 [2/2] (3/5)

    From Kari Hurtta@21:1/5 to All on Sat May 1 19:23:25 2021
    [continued from previous message]

    /*****************************************************************************
    ! * The Elm (ME+) Mail System - $Revision: 2.7 $ $State: Exp $
    *
    * Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
    * (was hurtta+elm@posti.FMI.FI,
    --- 1,7 ----
    ! static char rcsid[] = "@(#)$Id: file_util.c,v 2.8 2021/01/10 15:47:32 hurtta Exp $";

    /*****************************************************************************
    ! * The Elm (ME+) Mail System - $Revision: 2.8 $ $State: Exp $
    *
    * Modified by: Kari Hurtta <hurtta+elm@siilo.FMI.FI>
    * (was hurtta+elm@posti.FMI.FI,
    ***************
    *** 30,35 ****
    --- 30,38 ----
    extern int errno; /* system error number */
    #endif

    + /* For LONG_MAX */
    + #include <limits.h>
    +
    long bytes(name)
    char *name;
    {
    ***************
    *** 173,178 ****
    --- 176,183 ----
    **/

    struct stat buffer;
    + enum syscall_status r;
    + int fh = fileno(fd);

    /*
    * Make sure there is nothing in the stdio buffer
    ***************
    *** 181,197 ****

    fflush (fd);

    ! if (fstat(fileno(fd), &buffer) < 0) {
    ! int err UNUSED_VAROK = errno;
    DPRINT(Debug,8,
    (&Debug,
    ! "fsize failed: %s\n",
    ! strerror