NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/59824: mtree: Fix typos



>Number:         59824
>Category:       bin
>Synopsis:       mtree: Fix typos
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 09 14:05:00 +0000 2025
>Originator:     Jose Luis Duran
>Release:        trunk
>Organization:
FreeBSD
>Environment:
>Description:
Fix a couple of typos in the mtree source code:

1. In the output when using -F freebsd9 (s/expcted/expected/).
2. In the source code comments (s/insterted/inserted/).

Thank you!
>How-To-Repeat:
N/A.
>Fix:
diff --git usr.sbin/mtree/compare.c usr.sbin/mtree/compare.c
index c4e5bfcac1d7..3d8cf2335207 100644
--- usr.sbin/mtree/compare.c
+++ usr.sbin/mtree/compare.c
@@ -285,7 +285,7 @@ typeerr:		LABEL;
 
 		LABEL;
 		printf(flavor == F_FREEBSD9 ?
-		    "%spermissions expcted %#lo found %#lo" :
+		    "%spermissions expected %#lo found %#lo" :
 		    "%spermissions (%#lo, %#lo",
 		    tab, (u_long)s->st_mode,
 		    (u_long)p->fts_statp->st_mode & MBITS);
diff --git usr.sbin/mtree/spec.c usr.sbin/mtree/spec.c
index 25bface34bd0..24e15f33fa8a 100644
--- usr.sbin/mtree/spec.c
+++ usr.sbin/mtree/spec.c
@@ -803,7 +803,7 @@ addchild(NODE *pathparent, NODE *centry)
 		 *
 		 * Make centry point to the just-replaced node.	 Unlink
 		 * the just-replaced node from the list, and allow it to
-		 * be insterted in the correct position later.
+		 * be inserted in the correct position later.
 		 */
 		centry = samename;
 		if (centry->prev)



Home | Main Index | Thread Index | Old Index