Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: [PATCH 1/5] Library code for user-relative paths, take three.

From: Andreas Ericsson <hidden>
Date: 2016-06-15 22:42:12

Andreas Ericsson wrote:
H. Peter Anvin wrote:
quoted
The whole point with --strict is that it shouldn't DWIM.  DWIMming is 
*NOT* safe if the data has previously passed through a security screen.
But it hasn't at this point. The security scan is done afterwards, when 
the canonical path is compared against the whitelist which, in strict 
mode, only matches if it matches exactly.

But anyways, how about doing

    enter_repo(path, 2)

from the daemon to make enter_repo() do the chdir(".git")?
... while preventing the later call from git-upload-pack from doing so.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help