NetBSD Problem Report #59826

From www@netbsd.org  Tue Dec  9 14:53:53 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 0D8681A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  9 Dec 2025 14:53:53 +0000 (UTC)
Message-Id: <20251209145351.B44921A923A@mollari.NetBSD.org>
Date: Tue,  9 Dec 2025 14:53:51 +0000 (UTC)
From: jlduran@gmail.com
Reply-To: jlduran@gmail.com
To: gnats-bugs@NetBSD.org
Subject: mtree: Fix FreeBSD 9 compatibility output
X-Send-Pr-Version: www-1.0

>Number:         59826
>Category:       bin
>Synopsis:       mtree: Fix FreeBSD 9 compatibility output
>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:55:00 +0000 2025
>Last-Modified:  Sun Dec 14 17:35:01 +0000 2025
>Originator:     Jose Luis Duran
>Release:        trunk
>Organization:
FreeBSD
>Environment:
>Description:
Remove a spurious closing parenthesis when using FreeBSD 9 compatibility.
>How-To-Repeat:
$ mkdir /tmp/foo
$ cd /tmp/foo
$ touch bar
$ mtree -c > /tmp/m
$ chmod 0400 bar
$ mtree -f /tmp/m -F freebsd9
. changed
        modification time expected Tue Dec  9 12:00:00 2025 found Tue Dec  9 12:00:00 2025
bar changed
        permissions expcted 0644 found 0400) <-- EXTRA ")"

* The typo "expcted" has been reported in bin/59824.
>Fix:
--- usr.sbin/mtree/compare.c
+++ usr.sbin/mtree/compare.c
@@ -300,7 +300,7 @@ typeerr:		LABEL;
 				    flavor == F_FREEBSD9 ? "" : ")");
 		}
 		else
-			printf(")\n");
+			printf("%s\n", flavor == F_FREEBSD9 ? "" : ")");
 		tab = "\t";
 	skip:	;
 	}

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/59826 CVS commit: src/usr.sbin/mtree
Date: Sun, 14 Dec 2025 12:30:47 -0500

 Module Name:	src
 Committed By:	christos
 Date:		Sun Dec 14 17:30:47 UTC 2025

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

 Log Message:
 PR/59826: Jose Luis Duran: Fix FreeBSD 9 compatibility output


 To generate a diff of this commit:
 cvs rdiff -u -r1.62 -r1.63 src/usr.sbin/mtree/compare.c

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

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.