diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2013-07-30 12:46:19 +0200 |
---|---|---|
committer | Andreas Gruenbacher <agruen@linbit.com> | 2013-07-30 12:52:42 +0200 |
commit | afdfa9ec8e5f9acea4afaa0db758a4ed752dbe65 (patch) | |
tree | 180e8f7e18ec082c9196010500bd52ea6ea507f0 | |
parent | aac14e3187c18114f640592656396caba2a94de8 (diff) | |
download | patch-origin.tar.gz |
In dry-run mode, create temporary files in a temporary directoryorigin
* src/util.c (make_tempfile): Do not create temporary files in the final output
directory when in dry-run mode: the path may be read-only. In addition, we do
not want to leave intermediary empty output directories around.
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1599,7 +1599,7 @@ make_tempfile (char const **name, char letter, char const *real_name, int try_makedirs_errno = ENOENT; char *template; - if (real_name) + if (real_name && ! dry_run) { char *dirname, *basename; |