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

Re: [PATCH] unquote_c_style: fix off-by-one.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 7, 2008, 21:28 UTC
Message-ID
<7vod9q1axe.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080307092544.GA22069@chistera.yi.org>
Adeodato Simó <dato@net.com.org.es> writes:
Show 25 quoted lines
> * Pierre Habouzit [Fri, 07 Mar 2008 01:44:01 +0100]:
>
>> On Thu, Mar 06, 2008 at 10:10:41PM +0000, Junio C Hamano wrote:
>> > Pierre Habouzit <madcoder@debian.org> writes:
>
>> > > Thanks to Adeodato Simò for having caught this.
>
>> > > Signed-off-by: Pierre Habouzit <madcoder@debian.org>
>
>> > Thanks.  I would have appreciated a comment that said something about what
>> > external breakages this one caused, so that we can have an entry in "bugs
>> > fixed" list.
>
>> > A quick audit of the existing callers suggests that it is fast-import.
>
> Yes, it's fast-import. In particular, trying to rename a file whose name
> contains spaces:
>
>   R "file 1.txt" file 2.txt
>                 ^
>                 unquote_c_style() eats that space, thus fast-import
>                 fails with:
>
>                 fatal: Missing space after source: R "file 1.txt" file 2.txt
>
Thanks.
Previous: Adeodato Simó
Message 5 of 5 in “unquote_c_style: fix off-by-one.”
  1. unquote_c_style: fix off-by-one.Pierre Habouzit, Mar 6, 2008
  2. Junio C HamanoMar 6, 2008
  3. Pierre HabouzitMar 7, 2008
  4. Adeodato SimóMar 7, 2008
  5. Junio C HamanoMar 7, 2008

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.