Fix cleared-error leak in FSFS. Specifically, if a move-into-place
commit3346b6fb34cb5261908e904729dd54f4c6d7f05e
authorglasser <glasser@612f8ebc-c883-4be0-9ee0-a4e9ef946e3a>
Thu, 20 Dec 2007 01:42:24 +0000 (20 01:42 +0000)
committerglasser <glasser@612f8ebc-c883-4be0-9ee0-a4e9ef946e3a>
Thu, 20 Dec 2007 01:42:24 +0000 (20 01:42 +0000)
treee172e0661306678a961dad2b91ca7fd5bf96d8fb
parent8ce45914e2243f97bb03a7bd621f81eb830ae74c
Fix cleared-error leak in FSFS.  Specifically, if a move-into-place
fails due to the paths being on different filesystems, we clear the
error and fall back to a copy... but then we return the (destroyed)
error anyway.  This can be triggered by (say) making the transactions/
directory be a symlink to another filesystem.  (In this particular
case, this can trigger a segfault.)

* subversion/libsvn_fs_fs/fs_fs.c
  (svn_fs_fs__move_into_place): Set err to SVN_NO_ERROR after destroying
   it.

git-svn-id: http://svn.collab.net/repos/svn/trunk@28578 612f8ebc-c883-4be0-9ee0-a4e9ef946e3a
subversion/libsvn_fs_fs/fs_fs.c