Invoking ldconfig without arguments wipes all hints and makes me very sad

Shelby Cain scain at
Thu Apr 10 19:42:49 UTC 2008

Greetings list.  I'm a new user to FreeBSD and I just managed to
introduce myself to ldconfig's default behavior.  I'm currently locked
out of my remote server since bash isn't statically compiled and will
have to get physical access to correct my blunder.  :(

As a new user to FreeBSD, ldconfig's default behavior makes about as
much sense to me as rm adding "-fr ~" or kill adding "-9 1" in the
absence of arguments.  I hate to sound ignorant but I have to ask, is
there any particular reason FreeBSD's ldconfig defaults to this
seemingly unintuitive and non-newbie-safe behavior?

Would a patch that changes the behavior of ldconfig to assume -r in the
absence of command line arguments and adds a new parameter like
-e[rase]|-d[estroy]|-w[ipe]|-z[ap]|-l[olnewbie] to enable the original
behavior be likely to gain any acceptance?


Shelby Cain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url :

More information about the freebsd-questions mailing list