The branch main has been updated by zlei:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=1c95ec17cae22fb76d4e93c9eada78e03ca1bca6

commit 1c95ec17cae22fb76d4e93c9eada78e03ca1bca6
Author:     Zhenlei Huang <z...@freebsd.org>
AuthorDate: 2024-10-20 14:06:33 +0000
Commit:     Zhenlei Huang <z...@freebsd.org>
CommitDate: 2024-10-20 14:06:33 +0000

    ifconfig: Fix wrong indentation for the status of pfsync(4)
    
    The leading tab is always required, regardless of the configuration of
    `syncdev` or `syncpeer`, as `maxupd`, `defer` and `version` all require
    it.
    
    Reviewed by:    kp
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D47112
---
 sbin/ifconfig/ifpfsync.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sbin/ifconfig/ifpfsync.c b/sbin/ifconfig/ifpfsync.c
index 33e4e5ac8cd3..264b1ecd5b56 100644
--- a/sbin/ifconfig/ifpfsync.c
+++ b/sbin/ifconfig/ifpfsync.c
@@ -374,8 +374,7 @@ pfsync_status(if_ctx *ctx)
 
        nvlist_destroy(nvl);
 
-       if (syncdev[0] != '\0' || syncpeer.ss_family != AF_UNSPEC)
-               printf("\t");
+       printf("\t");
 
        if (syncdev[0] != '\0')
                printf("syncdev: %s ", syncdev);

Reply via email to