diff options
Diffstat (limited to 'meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch')
-rw-r--r-- | meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch b/meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch new file mode 100644 index 0000000000..21b8ef0c3b --- /dev/null +++ b/meta/recipes-devtools/subversion/subversion/subversion-CVE-2013-4277.patch @@ -0,0 +1,15 @@ +Upstream-Status: Backport + +--- a/subversion/svnserve/main.c ++++ b/subversion/svnserve/main.c +@@ -403,8 +403,9 @@ static svn_error_t *write_pid_file(const + const char *contents = apr_psprintf(pool, "%" APR_PID_T_FMT "\n", + getpid()); + ++ SVN_ERR(svn_io_remove_file(filename, pool)); + SVN_ERR(svn_io_file_open(&file, filename, +- APR_WRITE | APR_CREATE | APR_TRUNCATE, ++ APR_WRITE | APR_CREATE | APR_EXCL, + APR_OS_DEFAULT, pool)); + SVN_ERR(svn_io_file_write_full(file, contents, strlen(contents), NULL, + pool)); |