From nobody Sun Jan 18 08:28:12 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dv6DD5mJ0z6P3j4 for ; Sun, 18 Jan 2026 08:28:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dv6DD4Hw4z3M6h for ; Sun, 18 Jan 2026 08:28:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768724892; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eNC2jHLj9rjGzNAXbvlNUVtoSXGSq6UKp0ZZyYkYKEQ=; b=GDVuGkv9li79R5BP2uX7Ck5OILZ2SFciM+roX4IncWlg9JI0g7g5FElDQWQ97AeBl5m89j I6sx9fgilD6EJ8uu5azjunMIHodH+lFJdPNcQCGyMoD1of1tpJ41gFpaqTJMugZ6I9qt4C huatVpw5LXXRg+cYG5oi6ilLKUJPJ4JyqeDLhse2WoJmZreRFDVgi6SEyPCUwtzmLGH9zt Cu4gpiMZfORC8UrZAa7BaTZ6rzSYTJUjceahitEN+d/Bs7s7altX4D9Gw2ivpl+ctFKy1s TuIh4LMv+iNQo011WICQ2qfiq5iyB65Po1dOEAInldCPKKEfXKkpnPkpfE04JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768724892; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eNC2jHLj9rjGzNAXbvlNUVtoSXGSq6UKp0ZZyYkYKEQ=; b=yZpCfmH29giYVQfEB2TsxG5SUJbyy3j9LJbtNVr9J4/pbcXxSaTE8jgayKo+69qlQOb6m7 nGtcIxGng4vde/OO1AVeCMFQfhX3FfFJIwczJtT4VaMqsMqLfpUL8Cdxyc9q5tu34ZNbmg rkxnAIb5lC5X1sI+MwpgDUc9BsWOYQ+W4LklFk8wwgL3vBK0s2xwN7AZYKU9vYOYDLar2t z9fyex9fYRX2s/Zm27NMuWSj4D0zy70rzCBoj83aqkkW0IEi7oQ0VKMcscSbvIjp2p/qEq QZLtysMZuMVP1j5MPf3hl3byfNL6WROIlhwBU2f/gRaaZFf85hacQAySw4wB+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768724892; a=rsa-sha256; cv=none; b=werxS5t3U1i+4Kp6am5yUvp81SZSun1BwXyGO9QonhwgNkFyRwd9cRIlJdZPPYzScABsLR ZYGeMSl2WOGX4OateOIul/nGCCwpoIxH96X44u8uk+2HPrrDvoTE3hzVh+LNmqkn1Dbc3T NhFxGyEbeKXCrG7kSHjbL/C7H8370nF6HK1Fc4+HbQRV8BA6RKML4HCThCH3BexJaFAlBC VcSBvAusakAMKdWgL+mlfWffNAUS+U2HiaI0TBHxFdIFiIsXI52+WsQ3mFsxbXyrSPTJn6 8HAk4FUZM6n8oi6haqWPQEvNVVhvGq/fiKTswd6wvwFEV77DYeOF/+uDBwC11w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dv6DD3rG4zfLd for ; Sun, 18 Jan 2026 08:28:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id c96a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 18 Jan 2026 08:28:12 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Amy Vargas From: Pouria Mousavizadeh Tehrani Subject: git: 2f900cbc5fdf - main - ifconfig: Use strlcpy(3) instead of strncpy(3) for interface name List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pouria X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2f900cbc5fdf1eaafd706936dc4ded7c49a23620 Auto-Submitted: auto-generated Date: Sun, 18 Jan 2026 08:28:12 +0000 Message-Id: <696c999c.c96a.25c41358@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=2f900cbc5fdf1eaafd706936dc4ded7c49a23620 commit 2f900cbc5fdf1eaafd706936dc4ded7c49a23620 Author: Amy Vargas AuthorDate: 2026-01-17 09:48:06 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-01-18 08:26:39 +0000 ifconfig: Use strlcpy(3) instead of strncpy(3) for interface name No functional change intended. Reviewed by: pouria, delphij, imp Approved by: glebius (mentor) Differential Revision: https://reviews.freebsd.org/D54752 --- sbin/ifconfig/af_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ifconfig/af_link.c b/sbin/ifconfig/af_link.c index 55b75d847c16..db7dbb0841dc 100644 --- a/sbin/ifconfig/af_link.c +++ b/sbin/ifconfig/af_link.c @@ -134,7 +134,7 @@ link_status(if_ctx *ctx, const struct ifaddrs *ifa) sdl->sdl_alen != ETHER_ADDR_LEN) return; - strncpy(ifr.ifr_name, ifa->ifa_name, sizeof(ifr.ifr_name)); + strlcpy(ifr.ifr_name, ifa->ifa_name, sizeof(ifr.ifr_name)); memcpy(&ifr.ifr_addr, ifa->ifa_addr, sizeof(ifa->ifa_addr->sa_len)); ifr.ifr_addr.sa_family = AF_LOCAL; if ((sock_hw = socket(AF_LOCAL, SOCK_DGRAM, 0)) < 0) {