From nobody Sat Aug 2 17:57:02 2025 X-Original-To: dev-commits-src-all@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 4bvVrZ6Xpyz63NVV; Sat, 02 Aug 2025 17:57:02 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bvVrZ1BZKz3K8L; Sat, 02 Aug 2025 17:57:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754157422; 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=K1fgTXrB2KmukwDcWlKYm7hIg2pcLlvv8ckkj7FbNBg=; b=JAtEMKEGTgjpPN1WW5gDV9GAFShemzHiyD0x2tDXtTHo2KOSKlKE6xFSPXM+21lIgb7d70 bKdtO4TXwZoz1EBMZsmm4Kmh0lqyC8OhZuEWSrBlqyVLiMoRbac5NfyD1dQ+f2+j2wFcL7 lTPhKAY/4kGK/5jY7Sw5iR3IgV/wrFFnPvFbq7wUOITaCRaTsqvWD+FfuyT81gxMWehhL3 aLdc8yW7vOYAyetZ+RRjFaIoCsyhcl+Rfg1VSdwEKL27ZKO4HwGGjw2B91UUNUc9+WgFkx P6V4/IkRycfUxIwU/ZTA6chRGH1GyuadJuNNt8KBL8h4rdZEK+TSDvJcAyYkvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754157422; 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=K1fgTXrB2KmukwDcWlKYm7hIg2pcLlvv8ckkj7FbNBg=; b=e1Jsz/VRXL+Cc+ku0gd3nU4pFu+NIFIbD0z7dRZB297GvxYygljB9Ww0jWAYLQU9O+X21j mMl8s3WYSHV/Cn07xLA8uOKa8YzRZQIHKnqWNagaBGzPdgd2K0PGZgGVfH+mAfsDUpxqsk 6V4Iq5cL6x7QpXvtQ6W0Tg9+ephIq5HgoO9PwCgFqSyKhUKdOBUL1FFP0Nv5VJoFywYFRZ kG7GwiS2KghjhLA9wTSmclqfIjWGZbKa14j4whb1msXUUJnp303FwSW7IMQHejgQxje/Fl pTw+YIiiE0O1MYfTuo/8ccBPWyNnS//Oq8ZaxZpeevnHAA6S0Fadj7RqMAErpQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754157422; a=rsa-sha256; cv=none; b=P6OTNbcWz6q7B67KzxGW5kNg/6jnNEG8W9A0JrllSlm4vsQ3TzJDpKC3SVSXPm8MuF+0/c qyQDC3Oj3hl3/cC5fWK6WjIenJrYF5QlSWRwHRd6CRYRKUK7zNk9DIFEBQhvqF3JNfwFbZ k8zkUFwh1wyBvJU27UooO2vDx70XPvYetCXgXPoidoAjfMVqAWxuaznGnLaQxMkjokmUAN v2u89drDEDldBPzd6dIEdQ3pqKvJhwYAJnFmr1prog1wT8TQJ3Q3OH4baaRfKDgvcRhaAa x4e4UBWKgh3scwq9WX1flD84lCA9zpWAluY7WHDBgy6M4jNjAl+Ur4fQpOky0A== 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 4bvVrZ0mDzzC5f; Sat, 02 Aug 2025 17:57:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 572Hv20x066251; Sat, 2 Aug 2025 17:57:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 572Hv2Ox066248; Sat, 2 Aug 2025 17:57:02 GMT (envelope-from git) Date: Sat, 2 Aug 2025 17:57:02 GMT Message-Id: <202508021757.572Hv2Ox066248@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 8d8a745c456c - main - libutil: Drop auth_getval() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8d8a745c456cacf706689febee9639f5e8292fc8 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=8d8a745c456cacf706689febee9639f5e8292fc8 commit 8d8a745c456cacf706689febee9639f5e8292fc8 Author: Dag-Erling Smørgrav AuthorDate: 2025-08-02 17:56:16 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2025-08-02 17:56:35 +0000 libutil: Drop auth_getval() This function has been an empty stub for years; now that we're bumping the library version, we can finally get rid of it. Fixes: 0c381b7f0570 Reviewed by: kib, emaste Differential Revision: https://reviews.freebsd.org/D51704 --- lib/libutil/Makefile | 2 +- lib/libutil/Symbol.map | 1 - lib/libutil/auth.c | 44 -------------------------------------------- lib/libutil/libutil.h | 1 - 4 files changed, 1 insertion(+), 47 deletions(-) diff --git a/lib/libutil/Makefile b/lib/libutil/Makefile index d445bc5dec3b..12ac623aec6b 100644 --- a/lib/libutil/Makefile +++ b/lib/libutil/Makefile @@ -9,7 +9,7 @@ PACKAGE= runtime LIB= util SHLIB_MAJOR= 10 -SRCS= _secure_path.c auth.c cpuset.c expand_number.c flopen.c fparseln.c \ +SRCS= _secure_path.c cpuset.c expand_number.c flopen.c fparseln.c \ ftime.c getlocalbase.c gr_util.c \ hexdump.c humanize_number.c kinfo_getfile.c \ kinfo_getallproc.c kinfo_getproc.c kinfo_getvmmap.c \ diff --git a/lib/libutil/Symbol.map b/lib/libutil/Symbol.map index d4bac5b5f53e..8c8fff451cd1 100644 --- a/lib/libutil/Symbol.map +++ b/lib/libutil/Symbol.map @@ -2,7 +2,6 @@ FBSD_1.8 { _secure_path; auth_cat; auth_checknologin; - auth_getval; auth_hostok; auth_timeok; auth_ttyok; diff --git a/lib/libutil/auth.c b/lib/libutil/auth.c deleted file mode 100644 index 3414fc8e26e7..000000000000 --- a/lib/libutil/auth.c +++ /dev/null @@ -1,44 +0,0 @@ -/*- - * SPDX-License-Identifier: BSD-2-Clause - * - * Simple authentication database handling code. - * - * Copyright (c) 1998 - * Jordan Hubbard. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer, - * verbatim and that no modifications are made prior to this - * point in the file. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR HIS PETS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, LIFE OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#include -#include - -#include - -char * -auth_getval(const char *name) -{ - - (void)name; - return (NULL); -} diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h index 6d36a0c291c6..d27262e44daf 100644 --- a/lib/libutil/libutil.h +++ b/lib/libutil/libutil.h @@ -86,7 +86,6 @@ struct termios; struct winsize; __BEGIN_DECLS -char *auth_getval(const char *_name); void clean_environment(const char * const *_white, const char * const *_more_white); int expand_number(const char *_buf, int64_t *_num);