From nobody Fri Jun 24 16:10:41 2022 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 753B8866366; Fri, 24 Jun 2022 16:10:42 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LV2Cj6DsPz3JcR; Fri, 24 Jun 2022 16:10:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656087042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T+p4uOkoxbP6DUsPQqd5+0FKVW01E8bwdguQc27Iz28=; b=eim7svWCXZ1/Dhv910LCt5KK+g2SXNo17NEarnSB0fvqhmITpilCSwaAmacLSpwcpaZO1T tCmWhcXHG6OXli1f+MZtHi4A1C/S/1nUBcQxMZwWfTsvwHTT/iKfSJaOyl0PYIL50xtVKj QSK3b7Hec94bF8P5MrhGn0BbPLL6aRvTRsEngC42pd0suDiA7lO/GRLxgGntQ38cSF2Jy0 sHwfREcYcOAOgV1bxnbmrE41arD470STRmHiLHMKxb9hK37IQo+IkFSIPaWb8nBt9ZofXc Pi0LyTUgeEF1BKNsSWXvZrmB3NLfvlISNzjHD5ImyMCuWmJCzpLKoP6x5TdzfA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 29CC912B6B; Fri, 24 Jun 2022 16:10:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25OGAfBI006346; Fri, 24 Jun 2022 16:10:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25OGAfbT006345; Fri, 24 Jun 2022 16:10:41 GMT (envelope-from git) Date: Fri, 24 Jun 2022 16:10:41 GMT Message-Id: <202206241610.25OGAfbT006345@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: f9e62cbacc33 - main - libc/syslog: fully deprecate and don't try to open "/dev/log" 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f9e62cbacc33987506332133bb076c8fe4fbe82d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656087042; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=T+p4uOkoxbP6DUsPQqd5+0FKVW01E8bwdguQc27Iz28=; b=HMz2hlnT+FuNfpquRZpYIp4Vh+EdAUetuxf9w1ZwH9uEsBBhJZiFjs8C1KPN9/0TBHVPMX IMCiPw0eZAalsHv6bJVZdNc3GQ0keeBOaeC/yXg+Hvlge82toeb6iWEqc5cpP+sRw42ke4 w9wV1OmVJ0iUp9TfNEMuPzEVrxsOIcb3ymoy5UM82MHY+ot5GuOVq+TDQiYagprKVr46bO r6A7HVonIVbzwZ0AlEq8u6haC4SxQXRZrUnNSsiN/4WmdXbADNZqwv98Qc8Equhe5HYD+g hFbIRxnYKNZfgX4UtJzM8NiJwmHfOQiEffgR7YicdkjwrDmsFbXElDcH3ZJ5KA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656087042; a=rsa-sha256; cv=none; b=Vlzvs+Oc7lLhwiGDBnaAfVnbCKA1+rTkI92EnILsRpxg4YSf8RWrchYv5T5XwlALJ79XpC Ge+YjLkrby7pNe9g6mCPJRYgOJoGrVF5CCwWV62VONWAWCUJUqmWWwqxEDuw5cgSUVvs0g c7Hm+pbMuw0eN1foUMmbvlAqjsP4/UwGbNeFgzKEuNbgGsLn1XqVT1wMO48l5r5KJCaXF2 eZZ+WjXM4MrTK3b9y5+bTfkkMMN2BoXkdU8DZ94iAOQXsDYGkXubdfPyBC+TrmwFl+SUy/ EPt284G2CbTivNWofOrWUeVM/VT3qovu1tXib3ghRXm1gfn7G3uCuxOAkevERg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=f9e62cbacc33987506332133bb076c8fe4fbe82d commit f9e62cbacc33987506332133bb076c8fe4fbe82d Author: Gleb Smirnoff AuthorDate: 2022-06-24 16:09:11 +0000 Commit: Gleb Smirnoff CommitDate: 2022-06-24 16:09:11 +0000 libc/syslog: fully deprecate and don't try to open "/dev/log" The "/dev/log" socket existed in pre-FreeBSD times. Later it was substituted to a compatibility symlink. The symlink creation was deprecated in FreeBSD 10.2 and 9-STABLE. Reviewed by: markj Differential revision: https://reviews.freebsd.org/D35304 --- lib/libc/gen/syslog.c | 12 ------------ sys/sys/syslog.h | 1 - 2 files changed, 13 deletions(-) diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c index 797c7389d1a2..50a77f651980 100644 --- a/lib/libc/gen/syslog.c +++ b/lib/libc/gen/syslog.c @@ -435,18 +435,6 @@ connectlog(void) status = CONNDEF; } - if (status == NOCONN) { - /* - * Try the old "/dev/log" path, for backward - * compatibility. - */ - (void)strncpy(SyslogAddr.sun_path, _PATH_OLDLOG, - sizeof SyslogAddr.sun_path); - if (_connect(LogFile, (struct sockaddr *)&SyslogAddr, - sizeof(SyslogAddr)) != -1) - status = CONNDEF; - } - if (status == NOCONN) { (void)_close(LogFile); LogFile = -1; diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h index 071b68427105..ff2bd1450802 100644 --- a/sys/sys/syslog.h +++ b/sys/sys/syslog.h @@ -37,7 +37,6 @@ #define _PATH_LOG "/var/run/log" #define _PATH_LOG_PRIV "/var/run/logpriv" -#define _PATH_OLDLOG "/dev/log" /* backward compatibility */ /* * priorities/facilities are encoded into a single 32-bit quantity, where the