Re: [PATCH 11/12] verify_path(): do not allow absolute paths

5 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 11/12] verify_path(): do not allow absolute paths

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:52

Steffen Prohaska [off-list ref] writes:
Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Steffen Prohaska <redacted>
No commit log message?  Justification?

Re: [PATCH 11/12] verify_path(): do not allow absolute paths

From: Steffen Prohaska <hidden>
Date: 2016-06-15 22:44:52


On Jul 2, 2008, at 11:21 AM, Junio C Hamano wrote:
Steffen Prohaska [off-list ref] writes:
quoted
Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Steffen Prohaska <redacted>
No commit log message?  Justification?
Hannes,
Do we still need this change in verify_path().  I am not sure.
Maybe it should be reverted in 4msysgit?

	Steffen

Re: [PATCH 11/12] verify_path(): do not allow absolute paths

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:52

Hi,

On Wed, 2 Jul 2008, Junio C Hamano wrote:
Steffen Prohaska [off-list ref] writes:
quoted
Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Steffen Prohaska <redacted>
No commit log message?  Justification?
Justification: adding absolute paths was not caught properly on Windows, 
and this was the easiest patch.

However, IIRC, in the meantime we are nice to the user, and allow absolute 
paths (which we turn into a relative path, or error out if it is not under 
the current working directory).

Steffen, can you revert the patch and verify that my memory does not fail 
me?

Ciao,
Dscho

Re: [PATCH 11/12] verify_path(): do not allow absolute paths

From: Steffen Prohaska <hidden>
Date: 2016-06-15 22:44:52


On Jul 2, 2008, at 6:15 PM, Johannes Schindelin wrote:
Hi,

On Wed, 2 Jul 2008, Junio C Hamano wrote:
quoted
Steffen Prohaska [off-list ref] writes:
quoted
Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Steffen Prohaska <redacted>
No commit log message?  Justification?
Justification: adding absolute paths was not caught properly on  
Windows,
and this was the easiest patch.

However, IIRC, in the meantime we are nice to the user, and allow  
absolute
paths (which we turn into a relative path, or error out if it is not  
under
the current working directory).

Steffen, can you revert the patch and verify that my memory does not  
fail
me?
Is

    git add /c/msysgit/git/read-cache.c

an appropriate test?

It fails with

    error: 'c:/msysgit/git/read-cache.c' is outside repository

no matter if the commit is reverted or not.

	Steffen

Re: [PATCH 11/12] verify_path(): do not allow absolute paths

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:52

Hi,

On Wed, 2 Jul 2008, Steffen Prohaska wrote:
On Jul 2, 2008, at 6:15 PM, Johannes Schindelin wrote:
quoted
On Wed, 2 Jul 2008, Junio C Hamano wrote:
quoted
Steffen Prohaska [off-list ref] writes:
quoted
Signed-off-by: Johannes Schindelin <redacted> 
Signed-off-by: Steffen Prohaska <redacted>
No commit log message?  Justification?
Justification: adding absolute paths was not caught properly on 
Windows, and this was the easiest patch.

However, IIRC, in the meantime we are nice to the user, and allow 
absolute paths (which we turn into a relative path, or error out if it 
is not under the current working directory).

Steffen, can you revert the patch and verify that my memory does not 
fail me?
Is

  git add /c/msysgit/git/read-cache.c

an appropriate test?

It fails with

  error: 'c:/msysgit/git/read-cache.c' is outside repository

no matter if the commit is reverted or not.
Yes, that is enough.  It proves that the patch 11/12 is unnecessary and 
should be removed from 4msysgit.git.

Thanks,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help