diff options
author | trhodes <trhodes@FreeBSD.org> | 2002-04-18 16:25:18 +0000 |
---|---|---|
committer | trhodes <trhodes@FreeBSD.org> | 2002-04-18 16:25:18 +0000 |
commit | a4c67b08cb3f5dd6c26b0b394e29e82adea5de9c (patch) | |
tree | 0070dde4a92898e54f136547c0b98c94b47bfb2f /sbin/fdisk/fdisk.c | |
parent | c5eb18e0383a451b2ecaaabe89c1a14760e39794 (diff) | |
download | FreeBSD-src-a4c67b08cb3f5dd6c26b0b394e29e82adea5de9c.zip FreeBSD-src-a4c67b08cb3f5dd6c26b0b394e29e82adea5de9c.tar.gz |
Fix the fdisk(8) manual page.
s/partition/slice/ in fdisk.8
fix a bug in fdisk(8) where it did not honer -t when using -I
PR: 36563 and 35688
Submitted by: bde
Reviewed by: bde
Diffstat (limited to 'sbin/fdisk/fdisk.c')
-rw-r--r-- | sbin/fdisk/fdisk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index d2726ae..7be1cd8 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -119,7 +119,7 @@ static char *b_flag = NULL; /* path to boot code */ static int i_flag = 0; /* replace partition data */ static int u_flag = 0; /* update partition data */ static int s_flag = 0; /* Print a summary and exit */ -static int t_flag = 0; /* test only, if f_flag is given */ +static int t_flag = 0; /* test only */ static char *f_flag = NULL; /* Read config info from file */ static int v_flag = 0; /* Be verbose */ @@ -349,11 +349,11 @@ main(int argc, char *argv[]) partp->dp_start = dos_sectors; partp->dp_size = (disksecs / dos_cylsecs) * dos_cylsecs - dos_sectors; - dos(partp); if (v_flag) print_s0(-1); - write_s0(); + if (!t_flag) + write_s0(); exit(0); } if (f_flag) { @@ -390,12 +390,12 @@ main(int argc, char *argv[]) change_code(); if (u_flag || a_flag || B_flag) { - if (!t_flag) { + if (!t_flag) { printf("\nWe haven't changed the partition table yet. "); printf("This is your last chance.\n"); } print_s0(-1); - if (!t_flag) { + if (!t_flag) { if (ok("Should we write new partition table?")) write_s0(); } else { |