Module Name:    src
Committed By:   christos
Date:           Wed Dec 11 14:52:26 UTC 2024

Modified Files:
        src/usr.sbin/mtree: verify.c

Log Message:
PR/58885: Jose Luis Duran: Fix output formatting for extra entries for
FreeBSD-9 compatibility.


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/mtree/verify.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/mtree/verify.c
diff -u src/usr.sbin/mtree/verify.c:1.49 src/usr.sbin/mtree/verify.c:1.50
--- src/usr.sbin/mtree/verify.c:1.49	Thu Dec  5 12:17:43 2024
+++ src/usr.sbin/mtree/verify.c	Wed Dec 11 09:52:26 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: verify.c,v 1.49 2024/12/05 17:17:43 christos Exp $	*/
+/*	$NetBSD: verify.c,v 1.50 2024/12/11 14:52:26 christos Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)verify.c	8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: verify.c,v 1.49 2024/12/05 17:17:43 christos Exp $");
+__RCSID("$NetBSD: verify.c,v 1.50 2024/12/11 14:52:26 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -147,7 +147,8 @@ vwalk(void)
 			continue;
  extra:
 		if (!eflag && !(dflag && p->fts_info == FTS_SL)) {
-			printf("extra: %s", RP(p));
+			printf(flavor == F_FREEBSD9 ? "%s extra" : "extra: %s",
+			    RP(p));
 			if (rflag) {
 #if HAVE_STRUCT_STAT_ST_FLAGS
 				if (rflag > 1 &&

Reply via email to