You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2012/07/19 19:27:27 UTC

svn commit: r1363432 - /subversion/trunk/subversion/libsvn_fs_base/lock.c

Author: rhuijben
Date: Thu Jul 19 17:27:27 2012
New Revision: 1363432

URL: http://svn.apache.org/viewvc?rev=1363432&view=rev
Log:
* subversion/libsvn_fs_base/lock.c
  (svn_fs_base__get_locks): Just use a completely random name instead of just
    a partially random name for a spool file in the system tempdir.

Modified:
    subversion/trunk/subversion/libsvn_fs_base/lock.c

Modified: subversion/trunk/subversion/libsvn_fs_base/lock.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_base/lock.c?rev=1363432&r1=1363431&r2=1363432&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_base/lock.c (original)
+++ subversion/trunk/subversion/libsvn_fs_base/lock.c Thu Jul 19 17:27:27 2012
@@ -460,9 +460,9 @@ svn_fs_base__get_locks(svn_fs_t *fs,
 
   args.path = svn_fs__canonicalize_abspath(path, pool);
   args.depth = depth;
-  SVN_ERR(svn_io_open_uniquely_named(&(args.spool_file), NULL, NULL, NULL,
-                                     NULL, svn_io_file_del_on_close,
-                                     pool, pool));
+  SVN_ERR(svn_io_open_unique_file3(&(args.spool_file), NULL, NULL,
+                                   svn_io_file_del_on_close,
+                                   pool, iterpool));
   SVN_ERR(svn_fs_base__retry_txn(fs, txn_body_get_locks, &args, FALSE, pool));
 
   /* Rewind the spool file, then re-read it, calling GET_LOCKS_FUNC(). */