sbin/newfs_msdos: Fix a couple of minor issues with newfs_msdos
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 30 Mar 2020 13:52:54 +0000 (22:52 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 30 Mar 2020 13:52:54 +0000 (22:52 +0900)
commit8c741249a43755244aa31d570230f4ff3141f3ea
tree3dc39676eb90bf80b9751843bd1ab10b377dc1a6
parent590e4086e1dad8806cdad1e6a15cd804440f0788
sbin/newfs_msdos: Fix a couple of minor issues with newfs_msdos

- Do not unnecessarily strdup().
- Check return value of getdiskinfo(), if it failed, bail out.

from freebsd/freebsd@c5c4e23aeb0ac6661e653d907d7826d9ed819934
sbin/newfs_msdos/mkfs_msdos.c
sbin/newfs_msdos/newfs_msdos.c