X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Date: Sun, 14 Feb 2010 12:14:57 +0100
From: Gary <cygwin@garydjones.name>
To: cygwin@cygwin.com
Subject: Re: What permissions should /home/user/.. have?
Message-ID: <20100214111457.GA2428@mimosa.garydjones.name>
Mail-Followup-To: cygwin@cygwin.com
References: <20100213100834.GA3828@mimosa.garydjones.name> <4B76F2D6.90108@cygwin.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4B76F2D6.90108@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Sat, Feb 13, 2010 at 01:43:34PM -0500, Larry Hall (Cygwin) wrote:
> On 02/13/2010 05:08 AM, Gary wrote:
> >Weird question maybe, but what permissions should the ".." directory
> >entry have that sits in /home/<user>?
> >
> >I'm getting some weird behaviour from grep -r (in my home directory it
> >appears to be traversing up the .. entry and trying to access other
> >users' files) and wondering if the permissions are the cause.
> 
> You sure you don't have a symlink or mount that grep can traverse in
> that directory?

Hmm. There are some symlinks, but not to the other user's home
directory.

I know what it is. User error, I suppose. I did:
$ grep -Irl foo .*

I should have done
$ grep -Irl foo .[^\.]*
which correctly searches just the dotfiles without traversing "..".

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

