mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 18:20:49 -04:00
newfs: don't warn() when newfs'ing plain file
Differential Revision: https://reviews.freebsd.org/D50561
This commit is contained in:
parent
03ad449f6c
commit
44a4ae3ad7
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue