[Midnightbsd-cvs] [MidnightBSD/src] 444e9e: fetch: make -S argument accept values > 2GB
    Lucas Holt 
    noreply at github.com
       
    Thu Sep  8 18:34:26 EDT 2022
    
    
  
  Branch: refs/heads/stable/2.2
  Home:   https://github.com/MidnightBSD/src
  Commit: 444e9e03de4a6c4dea235e907ebb457a8e7f6c9d
      https://github.com/MidnightBSD/src/commit/444e9e03de4a6c4dea235e907ebb457a8e7f6c9d
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2022-09-08 (Thu, 08 Sep 2022)
  Changed paths:
    M usr.bin/fetch/fetch.c
  Log Message:
  -----------
  fetch: make -S argument accept values > 2GB
    Use strtoll() to parse the argument of the -S option.
    While strtol() returns a 64 bit value on 64 LP64 architectures, it
    is limit to 32 bit on e.g. i386. The strtoll() function returns a 64
    but result on all supported architectures and therefore supports the
    possible file lengths and file offsets on 32 bit archtectures.
Obtained from: FreeBSD
    
    
More information about the Midnightbsd-cvs
mailing list