From nobody Wed Nov 24 23:56:20 2021 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 019A118AD9D6; Wed, 24 Nov 2021 23:56:22 +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 4HzyZs28G3z4Qqx; Wed, 24 Nov 2021 23:56:21 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 07475135AA; Wed, 24 Nov 2021 23:56:21 +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 1AONuK1w022583; Wed, 24 Nov 2021 23:56:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AONuKbs022582; Wed, 24 Nov 2021 23:56:20 GMT (envelope-from git) Date: Wed, 24 Nov 2021 23:56:20 GMT Message-Id: <202111242356.1AONuKbs022582@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: b828161d123b - main - ldconfig(8): nostd/-s does nothing 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b828161d123bec894bc5a320ef26d6afc9b13ae8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637798181; 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=rzBUzqa6MjzGrobKQqfFwX67FqUe9p1VWcW1GxQIIIk=; b=JXZVgSYz+e5WROB6CC7ZvY8vVqdL8ZzH++NqO1mgR0pdkTFXyjIbXIct7GEw+ZwOCIWnxI teMRHqBq9C1lxndnBM8EJhWQ4Jak92ZwJqAAzi2HZyviHBrRA7PIUxdgnO0Ip2OOMYYsQk pUGvXpxIF5v+iiQCCKp4rye1LBQU7fM8JYbRnA3zqKa8KkblCymP+qlUp8A4JGWf6nC7Vx mRF2FmXYVEaAkrV52bQs5B1lv7WZ3uTawEBp34oWkMb337puKdEKTXPoMPoJczmpPhQjQ4 9rSfXEcErOTYag6bUYPyscF3Ssq6cRjqkpa13xu+CIU6plmYOSOtJRtX1VOLbA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637798181; a=rsa-sha256; cv=none; b=OXgWpC2U2B09Onu6j32uJzzcSOQEH1YD86woZSq26ZbJ5dWuuWaN9Ogy726tN/ye382awg 3DSjKJP7wnpVkI4csuMq0DktEDgGg4nJJJ3sVFqjd3CjH27y39rZ0HrDgXE/gp0GZrrOoq LD/mPamvAEV3h9ktD1etnXjhjiyPAdFTZbBwBKEKzkGAmLZ57ury79kumgMarvIR5un8sE 0RO8OdEa5LygEpdrc1mJGfqTG5UZcBGGKHoXo7XEdWSKmq3ioi21z1dlJZnVG05YHm962/ Fs8LCr0MsHlyqeK5tK/MDwPB7ZyzbKBLrcYA/ejYiTme0Dvy9oYNz36mIqiV8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=b828161d123bec894bc5a320ef26d6afc9b13ae8 commit b828161d123bec894bc5a320ef26d6afc9b13ae8 Author: Konstantin Belousov AuthorDate: 2021-11-19 05:21:21 +0000 Commit: Konstantin Belousov CommitDate: 2021-11-24 23:55:03 +0000 ldconfig(8): nostd/-s does nothing Remove the option from man page and summary. Silently ignore it when parsing command line for backward compatibility. Reviewed by: emaste Tested by: jbeich Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D33058 --- sbin/ldconfig/ldconfig.8 | 6 +----- sbin/ldconfig/ldconfig.c | 8 ++++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/sbin/ldconfig/ldconfig.8 b/sbin/ldconfig/ldconfig.8 index 63e2271b7cd5..7718f018bc70 100644 --- a/sbin/ldconfig/ldconfig.8 +++ b/sbin/ldconfig/ldconfig.8 @@ -43,7 +43,7 @@ .Sh SYNOPSIS .Nm .Op Fl 32 -.Op Fl Rimrsv +.Op Fl Rimrv .Op Fl f Ar hints_file .Op Ar directory | Ar .Sh DESCRIPTION @@ -128,10 +128,6 @@ on the standard output. The hints file is not modified. .Pp Scan and print all libraries found on the directories list. -.It Fl s -Do not scan the built-in system directory -.Pq Dq /usr/lib -for shared libraries. .It Fl v Switch on verbose mode. .El diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c index 3f623d6f38b1..777895936834 100644 --- a/sbin/ldconfig/ldconfig.c +++ b/sbin/ldconfig/ldconfig.c @@ -60,9 +60,9 @@ main(int argc, char **argv) { const char *hints_file; int c; - bool is_32, is_soft, justread, merge, nostd, rescan, verbose; + bool is_32, is_soft, justread, merge, rescan, verbose; - is_32 = is_soft = justread = merge = nostd = rescan = verbose = false; + is_32 = is_soft = justread = merge = rescan = verbose = false; while (argc > 1) { if (strcmp(argv[1], "-aout") == 0) { @@ -109,7 +109,7 @@ main(int argc, char **argv) justread = true; break; case 's': - nostd = true; + /* was nostd */ break; case 'v': verbose = true; @@ -132,7 +132,7 @@ static void usage(void) { fprintf(stderr, - "usage: ldconfig [-32] [-elf] [-Rimrsv] [-f hints_file] " + "usage: ldconfig [-32] [-elf] [-Rimrv] [-f hints_file] " "[directory | file ...]\n"); exit(1); }