git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] svn-fe: incorrect handling of files with newlines in them

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 13, 2012, 22:22 UTC
Message-ID
<20120413222201.GA20197@burratino>
In-Reply-To
<4F88A502.9080207@pileofstuff.org>

(+cc: Ram) Hey,

Andrew Sayers wrote:
Show 5 quoted lines
> Note that I've used the intentionally provocative filename
> $'readme.txt\nNode-kind: dir', but svn-fe doesn't fall for the trick.
> The dump format doesn't escape the filename at all, so it would probably
> fall for something cleverer like a 'copyfrom' line.  To be honest I'm
> not sure how you'd even detect such a filename.
Yep, sounds like a dump-load-format design bug.
> If the consensus is that this bug isn't fixable, I'd recommend putting a
> note to that effect in "contrib/svn-fe/svn-fe.txt".
Makes sense.  Please make it so.

Thanks much, Jonathan

Previous: Andrew Sayers
Message 2 of 2 in “[BUG] svn-fe: incorrect handling of files with newlines in them”
  1. Andrew SayersApr 13, 2012
  2. Jonathan NiederApr 13, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.