Roman Kagan <rkagan{_at_}>


r1553376 | stefan2 | 2013-12-25 06:53:31 -0600 (Wed, 25 Dec 2013)

The file context created in add_file() is supposed to survive beyond the
end of function, so it needs its own copy of copy_path.

The failure scenario was observed in git-svn usage, with errors like

perl: subversion/libsvn_subr/dirent_uri.c:2489:
      Assertion `svn_fspath__is_canonical(child_fspath)' failed.

* subversion/libsvn_ra_serf/commit.c
  (add_file): All members of the new_file struct shall have
              the same lifetime as the struct itself.

Patch by: Roman Kagan <rkagan{_at_}>