CVS commit: src/sbin/disklabel

2021-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat May 29 17:41:51 UTC 2021

Modified Files:
src/sbin/disklabel: main.c

Log Message:
first check, then copy


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2018-06-26 Thread Kamil Rytarowski
Module Name:src
Committed By:   kamil
Date:   Wed Jun 27 01:14:48 UTC 2018

Modified Files:
src/sbin/disklabel: main.c

Log Message:
Avoid misaligned access in disklabel(8) in find_label()

Introduce a new helper variable tlp and use it for memory access.

Detected with MKSANITIZER/UBSan

A patch by 


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2017-03-08 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Thu Mar  9 00:18:23 UTC 2017

Modified Files:
src/sbin/disklabel: main.c

Log Message:
use warnx() rather than warn() in a case where errno is not relevant.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2016-10-14 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sat Oct 15 06:23:29 UTC 2016

Modified Files:
src/sbin/disklabel: disklabel.5

Log Message:
revert part of revision 1.28. "e.g." is correct.  bad igor!


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sbin/disklabel/disklabel.5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2016-09-10 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sun Sep 11 02:10:31 UTC 2016

Modified Files:
src/sbin/disklabel: disklabel.8

Log Message:
Remove ignored Pp macro, highlighted by mandoc -Tlint.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sbin/disklabel/disklabel.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2016-09-10 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sun Sep 11 01:59:10 UTC 2016

Modified Files:
src/sbin/disklabel: disklabel.5

Log Message:
Grammar fix suggested by textproc/igor.
Syntax fix highlighted by mandoc -Tlint.
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sbin/disklabel/disklabel.5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2016-09-10 Thread Sevan Janiyan
Module Name:src
Committed By:   sevan
Date:   Sun Sep 11 01:48:00 UTC 2016

Modified Files:
src/sbin/disklabel: disklabel.8

Log Message:
Document the version disklabel first appeared.
Fix spelling mistakes.
Replace contraction.
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sbin/disklabel/disklabel.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2016-01-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 31 23:11:49 UTC 2016

Modified Files:
src/sbin/disklabel: Makefile

Log Message:
fix broken patch


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sbin/disklabel/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2016-01-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 31 18:57:29 UTC 2016

Modified Files:
src/sbin/disklabel: Makefile bswap.c bswap.h interact.c main.c

Log Message:
PR/50729: Izumi Tsutsui: Add "SMALLPROG"-like options to disklabel(8)


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sbin/disklabel/Makefile
cvs rdiff -u -r1.4 -r1.5 src/sbin/disklabel/bswap.c
cvs rdiff -u -r1.2 -r1.3 src/sbin/disklabel/bswap.h
cvs rdiff -u -r1.38 -r1.39 src/sbin/disklabel/interact.c
cvs rdiff -u -r1.45 -r1.46 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2015-07-17 Thread Hisashi T Fujinaka
Module Name:src
Committed By:   htodd
Date:   Sat Jul 18 06:00:46 UTC 2015

Modified Files:
src/sbin/disklabel: bswap.c

Log Message:
Fix build.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sbin/disklabel/bswap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2015-07-17 Thread Izumi Tsutsui
Module Name:src
Committed By:   tsutsui
Date:   Fri Jul 17 20:30:21 UTC 2015

Modified Files:
src/sbin/disklabel: bswap.c

Log Message:
Fix botch in "make disklabel a MI tool" changes in rev 1.2.

After that chanage, "MAXPARTITIONS" constant is not for the target port.
If host's MAXPARTITIONS is larger than a value of the target label and
target endianness is different from the build host, bswaplabel() could
overwrite data beyond the disklabel and primary boot stored after
LABELSECTOR in images might be corrupted.

This fixes boot failure of sun2 liveimage built by
"build.sh -U -m sun2 release live-image"
on TME.

Should be pulled up to netbsd-7.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/disklabel/bswap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2015-04-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Apr 29 17:07:11 UTC 2015

Modified Files:
src/sbin/disklabel: disklabel.8

Log Message:
Add missing doc flags (B,M,m)


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 src/sbin/disklabel/disklabel.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2015-04-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Apr 27 17:05:58 UTC 2015

Modified Files:
src/sbin/disklabel: main.c

Log Message:
fix mistake in previous


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2015-04-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr 25 21:43:53 UTC 2015

Modified Files:
src/sbin/disklabel: main.c

Log Message:
make table smaller in size.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2014-09-19 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Sep 19 17:45:04 UTC 2014

Modified Files:
src/sbin/disklabel: main.c

Log Message:
Add OpenRISC 1000 & UCB RISC-V platform support.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2014-08-10 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Sun Aug 10 06:48:51 UTC 2014

Modified Files:
src/sbin/disklabel: main.c

Log Message:
Fix typo in "dreamcast" port name.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2014-07-15 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Jul 15 20:18:30 UTC 2014

Modified Files:
src/sbin/disklabel: main.c

Log Message:
Print uint32_t field as such.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-08-21 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 22 00:26:23 UTC 2013

Modified Files:
src/sbin/disklabel: main.c

Log Message:
Add m68000/coldfire.
Add evbcf.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-08-11 Thread Jeff Rizzo
Module Name:src
Committed By:   riz
Date:   Sun Aug 11 17:15:15 UTC 2013

Modified Files:
src/sbin/disklabel: main.c

Log Message:
A number of new earm MACHINE_ARCH have shown up recently; make sure
we can deduce their endianness.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-05-14 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 15 00:47:43 UTC 2013

Modified Files:
src/sbin/disklabel: main.c

Log Message:
%td is for ptrdiff_t not for off_t


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-05-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon May 13 18:01:08 UTC 2013

Modified Files:
src/sbin/disklabel: main.c

Log Message:
CVE 1020933: Prevent integer overflow by using wider type


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-05-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon May 13 17:58:50 UTC 2013

Modified Files:
src/sbin/disklabel: main.c

Log Message:
CVE 1020935: Prevent overflow


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-05-05 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun May  5 15:59:43 UTC 2013

Modified Files:
src/sbin/disklabel: main.c

Log Message:
Add an arch_endian entry for x86_64.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-05-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri May  3 21:23:36 UTC 2013

Modified Files:
src/sbin/disklabel: main.c

Log Message:
Make sure to initialize byteorder if native.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-05-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri May  3 16:39:00 UTC 2013

Modified Files:
src/sbin/disklabel: main.c

Log Message:
Fix tpyos.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-01-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan 17 18:33:58 UTC 2013

Modified Files:
src/sbin/disklabel: extern.h interact.c main.c

Log Message:
move dk_ioctl to a header file for the benefit of x-building.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sbin/disklabel/extern.h
cvs rdiff -u -r1.36 -r1.37 src/sbin/disklabel/interact.c
cvs rdiff -u -r1.27 -r1.28 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2013-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Jan 15 23:52:48 UTC 2013

Modified Files:
src/sbin/disklabel: interact.c

Log Message:
- simplify getinput.
- add adjust command.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/sbin/disklabel/interact.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2012-04-08 Thread Erik Berls
Module Name:src
Committed By:   cyber
Date:   Sun Apr  8 07:59:53 UTC 2012

Modified Files:
src/sbin/disklabel: main.c

Log Message:
PR bin/45744
from Julian Fagir
Removing options that have had implementations removed.

-b: removed in -r1.4
-s: removed in -r1.2


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2011-08-18 Thread Frank Wille
Module Name:src
Committed By:   phx
Date:   Thu Aug 18 08:42:07 UTC 2011

Modified Files:
src/sbin/disklabel: Makefile

Log Message:
Define USE_MBR for ofppc.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sbin/disklabel/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2011-08-02 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Aug  2 10:21:12 UTC 2011

Modified Files:
src/sbin/disklabel: disklabel.8

Log Message:
Sort sections. Remove comma in enumeration of two items.


To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 src/sbin/disklabel/disklabel.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2011-07-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jul 25 16:31:05 UTC 2011

Modified Files:
src/sbin/disklabel: disklabel.8

Log Message:
mention that we don't handle more than 2TB disks/partitions.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sbin/disklabel/disklabel.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2011-02-12 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Sat Feb 12 22:23:02 UTC 2011

Modified Files:
src/sbin/disklabel: Makefile

Log Message:
Disable COMPAT_386BSD_MBRPART. The code is still here if anyone needs it
for some reason. (But I have no idea why that would be -- if you have one
of these really ancient partitions and you're about to run disklabel, you
can easily run fdisk first and change the partition type to NetBSD.)

As it stands, the code will munch FreeBSD installs under some
circumstances, which is really not acceptable behavior.

The code, along with the kernel support that's been disabled by
default for several years, and some related but less dangerous code in
sysinst, should prboably be removed entirely after -6 is branched.

Discussed on tech-kern and tech-userlevel; closes PR 44496.

This is also almost certainly the cause of PR 42521 and PR 38841.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sbin/disklabel/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2011-01-06 Thread Alan Barrett
Module Name:src
Committed By:   apb
Date:   Thu Jan  6 21:39:01 UTC 2011

Modified Files:
src/sbin/disklabel: interact.c main.c printlabel.c

Log Message:
Change printf formats to match the data type of the values being
printed.  There's now a lot of PRIu16 and PRIu32, some PRIu8, some
SCNu32, and a few cases where %u and %d were reversed.  Multiplication
of 32-bit and 8-bit values is cast to uint64_t and printed with PRIu64.

Inspired by a report from Patrick Welche on current-users.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sbin/disklabel/interact.c
cvs rdiff -u -r1.23 -r1.24 src/sbin/disklabel/main.c
cvs rdiff -u -r1.15 -r1.16 src/sbin/disklabel/printlabel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2011-01-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Jan  6 19:34:28 UTC 2011

Modified Files:
src/sbin/disklabel: main.c

Log Message:
match printf formats and types from Patrick Welche


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sbin/disklabel/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/disklabel

2010-05-28 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Fri May 28 07:40:53 UTC 2010

Modified Files:
src/sbin/disklabel: interact.c

Log Message:
Change getnum() to use intmax_t instead of int, so it doesn't overflow
between 2^31 and 2^32. Adjust call sites accordingly. PR 43354.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sbin/disklabel/interact.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.