git: 44a4ae3ad72d - main - newfs: don't warn() when newfs'ing plain file
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Jun 2025 16:51:06 UTC
The branch main has been updated by rew:
URL: https://cgit.FreeBSD.org/src/commit/?id=44a4ae3ad72dd0d4e6e78f586a679d632cc4dbfd
commit 44a4ae3ad72dd0d4e6e78f586a679d632cc4dbfd
Author: Robert Wing <rew@FreeBSD.org>
AuthorDate: 2025-06-03 16:50:58 +0000
Commit: Robert Wing <rew@FreeBSD.org>
CommitDate: 2025-06-03 16:50:58 +0000
newfs: don't warn() when newfs'ing plain file
Differential Revision: https://reviews.freebsd.org/D50561
---
sbin/newfs/newfs.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 78a297e6074a..418319d1cd3a 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -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;