From owner-freebsd-current@freebsd.org Tue Jul 28 19:45:02 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12D6B9ADD5E for ; Tue, 28 Jul 2015 19:45:02 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E2CC914F for ; Tue, 28 Jul 2015 19:45:01 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: by mailman.ysv.freebsd.org (Postfix) id DF5889ADD5D; Tue, 28 Jul 2015 19:45:01 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DEEC79ADD5C for ; Tue, 28 Jul 2015 19:45:01 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B8BF14E for ; Tue, 28 Jul 2015 19:45:01 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: by wibxm9 with SMTP id xm9so175208908wib.1 for ; Tue, 28 Jul 2015 12:44:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :mime-version:content-type:content-id:date:message-id; bh=4ni7dV0XFR02H84xXG6reZRqILgk+j1IdJftoQeYVfs=; b=OGua9lZr53UJiOGLw1VGHtvg0LMIHRcfSY3eEeoKjvQuMLM4xLsr91b29vY6zYHxnK PMe64kA25DIcXTD9dWFN4ceNFUuxuT6/g6H37XXxZzy1+TBgQHj4/E3HidKIP9g2zA5t lZWyqKNFxHhZVWaYa/eHhCrOt1l8IO5qgs8Q2DGFwHp3EXsyKoJB8jGVeTKL1F7Qfdbf lyiC1nz0ys11jnVysQMfPsWyte588vylyKL7KwqoyeSsTyWTKK6gvjJVLArZvQPk4AnA 4cdSrU8AGmDL6Ebk5yGihYKOvcipn/7RtIxK8kLY8PL7HmHU2txoOdnX98gBHMxBYRxi 4W/Q== X-Gm-Message-State: ALoCoQn+l5ozB3AL4HENMsB/nVSwipssCM2IWbEh4JAy0gKyJuDlMKhuxO6+VrWnY8jxIvxwjxRF X-Received: by 10.180.79.4 with SMTP id f4mr10075490wix.83.1438112693833; Tue, 28 Jul 2015 12:44:53 -0700 (PDT) Received: from clue.co.za ([197.89.167.207]) by smtp.gmail.com with ESMTPSA id mc4sm20558498wic.6.2015.07.28.12.44.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 12:44:52 -0700 (PDT) From: Ian FREISLICH X-Google-Original-From: Ian FREISLICH Received: from localhost ([127.0.0.1] helo=zen) by clue.co.za with esmtp (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZKAny-000CJR-8S; Tue, 28 Jul 2015 21:44:50 +0200 To: Glen Barber cc: current@freebsd.org Subject: Re: "broken" symbolic links in /usr/lib In-reply-to: <20150728194001.GZ54478@FreeBSD.org> References: <20150728194001.GZ54478@FreeBSD.org> <20150728193156.GY54478@FreeBSD.org> X-Attribution: BOFH MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <47331.1438112690.1@zen> Date: Tue, 28 Jul 2015 21:44:50 +0200 Message-Id: X-Mailman-Approved-At: Tue, 28 Jul 2015 20:47:31 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2015 19:45:02 -0000 Glen Barber wrote: > On Tue, Jul 28, 2015 at 07:31:56PM +0000, Glen Barber wrote: > > On Tue, Jul 28, 2015 at 08:16:16PM +0200, Ian FREISLICH wrote: > > > Hi > > >=20 > > > I cannot for the life of me figure out why this is so: > > >=20 > > > As non-root: > > > [zen] /usr/lib $ file libgcc_s.so > > > libgcc_s.so: broken symbolic link to ../../lib/libgcc_s.so.1 > > >=20 > > > As root: > > > [zen] /usr/lib # file libgcc_s.so=20 > > > libgcc_s.so: symbolic link to ../../lib/libgcc_s.so.1 > > >=20 > > > Only on one of my machines, all running CURRENT from within a day. > > > The upshot is that I have to be root in order to link code. > > >=20 > > > Any ideas greatly appreciated. > > >=20 > >=20 > > What are the permissions on /lib/libgcc_s.so.1 ? > >=20 > > Probably a better question: What are the permissions on /lib ? Answering both: [zen] /usr/lib # ls -ld /lib drwxr-xr-x 3 root wheel 1536 Jul 28 19:07 /lib [zen] /usr/lib # ls -l /lib/libgcc_s.so.1 -r--r--r-- 1 root wheel 57792 Jul 28 19:07 /lib/libgcc_s.so.1 Ian -- Ian Freislich