summaryrefslogtreecommitdiffstats
path: root/usr.bin/whois
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-08-05 16:24:13 +0000
committeriedowse <iedowse@FreeBSD.org>2001-08-05 16:24:13 +0000
commit4c37b1678b0232380d535df485494283287f9552 (patch)
tree34da6d50d8a10d3b73789f51baa574584dd76135 /usr.bin/whois
parent26a50c725f3ae185b2d501dde5edc2f46ed85fd7 (diff)
downloadFreeBSD-src-4c37b1678b0232380d535df485494283287f9552.zip
FreeBSD-src-4c37b1678b0232380d535df485494283287f9552.tar.gz
Fix a number of bugs and annoyances in fdisk, many of which were
pointed out by bde: - Ask for user confirmation before adjusting to a head/cylinder boundary (only when running interactively), and separate this adjustment from the automatic calculation of c/h/s parameters. - In sanitize_partition, don't change any values in the slice until we know that the automatic adjustment will succeed. - When auto-adjusting, ignore unused slices and give an appropriate error for other zero-size slices depending on the cause. - Change dos() to do all of the c/h/s calculations for a whole slice; this fixes a bug where the ending c/h/s of an unused slice was set incorrectly. - When changing the active slice, detect the currently active slice number instead of always defaulting to slice 4. - Call fflush(stdout) before calling fgets(). - Test for fgets() returning NULL so we don't loop on EOF. Reviewed by: bde
Diffstat (limited to 'usr.bin/whois')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud