From owner-freebsd-questions@FreeBSD.ORG Mon Mar 16 16:13:30 2009 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 D3560106568F for ; Mon, 16 Mar 2009 16:13:30 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from mail-ew0-f166.google.com (mail-ew0-f166.google.com [209.85.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5838FC20 for ; Mon, 16 Mar 2009 16:13:29 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: by ewy10 with SMTP id 10so3646982ewy.43 for ; Mon, 16 Mar 2009 09:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=QyeWB2UDFKSbYTBw29/sP4uIvOcomcfrx0WDxFwEciw=; b=mtubveKB67iVsFrGCO36FipSTxocnJ4Q5qr+c65ZvwaHqqCLu2Imi5YI6sn64NPSvD RoJq3FpZZKQ2lWgAgElTe9aK5i15tkbT0l5x1aeM7NkTqNl4T+q3JRPLfqvj6jE+ZfaS 89smTcSls5cPxnoDOJQRkYg8uo6T1Sv/h+v9Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=mbIXykN9xzHSlzF9FsjFYp8MHP6xTdavJKaAZyW6oXE8yOjB1U/NHca6W32fNr64/k u6MvnwONzymzTgCmZU1Zg04s8+D/Lq3kkhXp3KVm2N7e/brA8A4LaSoSwcBox/lgZQGv 8PlFFeLPpVKrDw+lzH8AF+87g+4tIUSJmHhh4= MIME-Version: 1.0 Received: by 10.210.52.15 with SMTP id z15mr3793722ebz.87.1237220009147; Mon, 16 Mar 2009 09:13:29 -0700 (PDT) In-Reply-To: References: <20090316153923.GA13043@owl.midgard.homeip.net> <33BEAB1A-A0AB-4684-95EE-8C2C4328ABA7@identry.com> Date: Mon, 16 Mar 2009 16:13:29 +0000 Message-ID: From: Chris Rees To: FreeBSD Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: links vs real directories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2009 16:13:31 -0000 2009/3/16 John Almberg : > > On Mar 16, 2009, at 11:39 AM, Erik Trulsson wrote: > >> On Mon, Mar 16, 2009 at 11:22:13AM -0400, John Almberg wrote: >>> >>> I always thought that links to real directories were pretty much the >>> same as real directories, but I've just discovered a situation where >>> they are not and I'm wondering if I'm doing something wrong... >> >> A *soft* link to a directory entry (be it a directory or a file or >> something >> else) is not quite equivalent to the original entry since they are easil= y >> distinguished and some programs do treat softlinks differently from othe= r >> targets. > > I can see that, now... If I create a soft link to ~/shared/config, and th= en > cd into the directory, when I type 'ls ..', I get the listing for ~/share= d, > not ~/app. > > Bummer... > > I've just dug through man ln, and don't see any obvious solution. Since t= his > must be a problem for anyone who wants to do something like this, I guess= I > am taking the wrong approach, altogether. > > Will have to re-think this.... > > > > -- John > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > When we're talking in a technical sense, we should probably use the correct terms. The 'official' and more descriptive name for a softlink is a symbolic link. Symbolic links are an absolute nightmare for security purposes, and many programs (especially ones set to run suid) choke on them. This could be intentional.... Since RoR is free software, you could dive in and edit where it looks for in the source code, or look for a compile-time option. Try /dir/to/port's/work/directory # ./configure --help Chris -- R< $&h ! > $- ! $+ =A0 =A0 =A0$@ $2 < @ $1 .UUCP. > (sendmail.cf)