pkgsrc-Bugs archive

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

Subject: Re: pkg/57496



The following reply was made to PR pkg/57496; it has been noted by GNATS.

From: Henryk Paluch <hpaluch%seznam.cz@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Subject: Re: pkg/57496
Date: Sun, 2 Jul 2023 09:47:47 +0200

 Hello!
 
 Actually there is bug for all partition types, not just wedges - it 
 again scales already scaled partition size.
 
 Here is proper fix:
 
 --- /home/builder/orig/io.c	2023-07-01 08:28:46.534337339 +0000
 +++ libexfat/io.c	2023-07-02 07:39:07.883316521 +0000
 @@ -244,7 +244,7 @@ struct exfat_dev* exfat_open(const char*
   			/* getdisksize() needs the raw device name      */
   			getdiskrawname(device, sizeof(device), spec);
   			getdisksize(device, &secsize, &dksize);
 -			dev->size = secsize * dksize;
 +			dev->size = dksize;
   		}
   		if (dev->size <= 0) {
   			exfat_error("Unable to determine file system size");
 


Home | Main Index | Thread Index | Old Index