From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 22:07:18 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB0E5106564A for ; Thu, 10 Apr 2008 22:07:18 +0000 (UTC) (envelope-from edlinuxguru@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.189]) by mx1.freebsd.org (Postfix) with ESMTP id 610758FC1C for ; Thu, 10 Apr 2008 22:07:18 +0000 (UTC) (envelope-from edlinuxguru@gmail.com) Received: by rn-out-0910.google.com with SMTP id e11so298132rng.7 for ; Thu, 10 Apr 2008 15:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=fjTVv0+m3jkcx2qFj2sZoulYZYnra4/XHgvHwyoZHgI=; b=DZppaNCm1/WURXoGH+Lk9lCwtPbdMGDQeH7BvO1CGoqDRQxDttKpHbAVPUalZFJj5Pj8BznPWkcfXT9cqPiLdhiOml0xd6Nm8s5rn0OHZtS1iPflelOH0kN2FISRYQGXg5l4d4oeJJxREYFS+pBtD8ewh4Y9e00gif5/uNMUZtA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XvFCN3CRTMfQbYo+OIaDF5kxtgVocO1AM1J68E4rZb10kSYnjgN66jtNWJadusSVxl+aXdNy84J5tqTWnnoWRCUmzQxP5MGc0fUOfck6vzBnWF23vUdixGmnEQA3nU96VJdqP3HfJd/Z1Ql+Feozuh6eKZ+SpxgvQfgSipmAfuQ= Received: by 10.142.47.6 with SMTP id u6mr594756wfu.29.1207865237258; Thu, 10 Apr 2008 15:07:17 -0700 (PDT) Received: by 10.142.233.1 with HTTP; Thu, 10 Apr 2008 15:07:17 -0700 (PDT) Message-ID: Date: Thu, 10 Apr 2008 18:07:17 -0400 From: "Edward Capriolo" To: freebsd-questions@freebsd.org In-Reply-To: <1207863879.11735.85.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1207855812.11735.39.camel@localhost> <200804102309.37024.fbsd.questions@rachie.is-a-geek.net> <1207863879.11735.85.camel@localhost> Subject: Re: Invoking ldconfig without arguments wipes all hints and makes me very sad X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2008 22:07:18 -0000 The command ldconfig -v Wipes your hints without saying a thing about it. I would not call that verbose. If you want to know what I think it should output I suggest. ldconfig -v Number of paths specified 0 News Hints Size: 0 On Thu, Apr 10, 2008 at 5:44 PM, Shelby Cain wrote: > > On Thu, 2008-04-10 at 23:09 +0200, Mel wrote: > > > > First of all, running ldconfig without arguments does nothing bad. Running > > ldconfig without flags and with arguments does. > > > > Secondly, what is the command: > > ldconfig /usr/lib > > > > supposed to do, according to newbie friendly logic? > > Because it should be possible to "just have the linker create hints for one > > directory". > > > > Your example seems perfectly reasonable should one wish to create hints > for only one directory. > > However, in my particular case it seems that my blunder of running > ldconfig -v (and not ldconfig by itself as I had assumed - my bad) is > sufficient to render it impossible to log in as my regular user account > since I had set my default login shell to bash. That, in conjunction > with root being disallowed by default in sshd effectively locked me out > of my machine once I closed my only open ssh session. > > Modifying my original suggestion slightly, is there any reason why it > would be a bad thing for ldconfig to assume -r when either -v with no > other arguments (or no arguments at all) is passed to ldconfig or is > there some specific reason for the current behavior? > > Regards, > > Shelby Cain >