NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/61117: dump(8) will add 500+ spaces in /etc/dumpdates
The following reply was made to PR bin/61117; it has been noted by GNATS.
From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/61117: dump(8) will add 500+ spaces in /etc/dumpdates
Date: Thu, 3 Dec 2026 16:53:29 -0000 (UTC)
gnats-admin%NetBSD.org@localhost ("rnkn%rnkn.xyz@localhost via gnats") writes:
>However dump(8) when called with -u currently updates /etc/dumpdates by inserting the device name, followed by 500+ spaces, followed by the date.
You could pipe it through 'column -t' to make it more readable.
The original format used a field of 16 characters. Since that led to
truncation for e.g. LVM volumes ("/dev/mapper/group-volume") it was
extended to MAX_NAME (==511) characters. It should be further extended
to MAXPATHLEN to allow arbitrary paths.
Since the file is written with fprintf() and read with fscanf(), there
is no problem to changes it to use unpadded strings. You lose the current
property of a fixed record size. No idea if anyone is relying on that.
Home |
Main Index |
Thread Index |
Old Index