# Problem with test from aa9c83c2

2 messages from 2008-02-29 to 2008-02-29. Participants: Mike Hommey, Junio C Hamano.
Thread: https://gitlist.dev/t/12386

## Mike Hommey, 2008-02-29 21:04

Subject: Problem with test from aa9c83c2
Message-ID: <20080229210410.GA26683@glandium.org>
URL: https://gitlist.dev/e/20080229210410.GA26683%40glandium.org

```
Hi,

When run as root, the test added in aa9c83c2 fails, because root is allowed
to remove files in unreadable and unwriteable directories. Now, the
problem is that I don't know what to do with that. Should we care ?

Mike

```

## Junio C Hamano, 2008-02-29 21:36

Subject: Re: Problem with test from aa9c83c2
Message-ID: <7vtzjrbg2f.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vtzjrbg2f.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <20080229210410.GA26683@glandium.org>

```
Mike Hommey <mh@glandium.org> writes:

> When run as root, the test added in aa9c83c2 fails, because root is allowed
> to remove files in unreadable and unwriteable directories. Now, the
> problem is that I don't know what to do with that. Should we care ?

Of course not.  You are nuts running tests as root.

If "git foo" should refuse to remove a file for revision control
reason, and it does refuse correctly for a non-root user but it
fails to refuse when run as root, then that is a bug and we do
care about it.  IOW, I am not saying you are nuts running git as
root.

```
