From owner-freebsd-hackers Sun Jul 9 10:20:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from racine.cybercable.fr (racine.cybercable.fr [212.198.0.201]) by hub.freebsd.org (Postfix) with SMTP id 95FD737B53A for ; Sun, 9 Jul 2000 10:19:54 -0700 (PDT) (envelope-from mhenrion@cybercable.fr) Received: (qmail 8170900 invoked from network); 9 Jul 2000 17:19:48 -0000 Received: from r121m199.cybercable.tm.fr (HELO cybercable.fr) ([195.132.121.199]) (envelope-sender ) by racine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 9 Jul 2000 17:19:48 -0000 Message-ID: <3968B4F7.17CC3DAC@cybercable.fr> Date: Sun, 09 Jul 2000 19:23:03 +0200 From: Maxime Henrion X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: ldconfig behaviour when no parameters are given Content-Type: multipart/mixed; boundary="------------3312AD91EB104BE7C8DDA7D6" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------3312AD91EB104BE7C8DDA7D6 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Here is the small patch to activate the -R behaviour when no arguments are given :) Thanks for helping me ! I'll work on the other modification i suggested as soon as i have enough time. Best regards, - Maxime Henrion --------------3312AD91EB104BE7C8DDA7D6 Content-Type: text/plain; charset=us-ascii; name="diff-ldconfig" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff-ldconfig" *** /usr/src/sbin/ldconfig/ldconfig.c Sun Jan 16 22:08:58 2000 --- ldconfig.c Sun Jul 9 19:06:23 2000 *************** *** 115,121 **** errx(1, "unknown object format \"%s\"", objformat); hints_file = is_aout ? _PATH_LD_HINTS : _PATH_ELF_HINTS; ! while ((c = getopt(argc, argv, "Rf:mrsv")) != -1) { switch (c) { case 'R': rescan = 1; --- 115,123 ---- errx(1, "unknown object format \"%s\"", objformat); hints_file = is_aout ? _PATH_LD_HINTS : _PATH_ELF_HINTS; ! if (argc == 1) ! rescan = 1; ! else while((c = getopt(argc, argv, "Rf:mrsv")) != -1) { switch (c) { case 'R': rescan = 1; --------------3312AD91EB104BE7C8DDA7D6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message