newfs: don't warn() when newfs'ing plain file

Differential Revision:	https://reviews.freebsd.org/D50561
This commit is contained in:
Robert Wing 2025-06-03 08:50:58 -08:00
parent 03ad449f6c
commit 44a4ae3ad7

View file

@ -327,7 +327,6 @@ main(int argc, char *argv[])
if (fstat(disk.d_fd, &st) < 0)
err(1, "%s", special);
if ((st.st_mode & S_IFMT) != S_IFCHR) {
warn("%s: not a character-special device", special);
is_file = 1; /* assume it is a file */
if (sectorsize == 0)
sectorsize = 512;