vcs-svn: quote paths correctly for ls command

This bug was found while importing rev 601865 of ASF.

[jn: with test]

Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
This commit is contained in:
David Barr
2010-12-12 03:59:31 +11:00
committed by Jonathan Nieder
parent 723b7a2789
commit e435811208
4 changed files with 112 additions and 1 deletions

View File

@ -107,7 +107,7 @@ static void ls_from_active_commit(uint32_t depth, const uint32_t *path)
{
/* ls "path/to/file" */
printf("ls \"");
pool_print_seq(depth, path, '/', stdout);
pool_print_seq_q(depth, path, '/', stdout);
printf("\"\n");
fflush(stdout);
}