Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jul 2000 19:23:03 +0200
From:      Maxime Henrion <mhenrion@cybercable.fr>
To:        freebsd-hackers@freebsd.org
Subject:   Re: ldconfig behaviour when no parameters are given
Message-ID:  <3968B4F7.17CC3DAC@cybercable.fr>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3968B4F7.17CC3DAC>