From 232b19c50410590a705a9f4917c20500fb15c100 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 20 Oct 2015 11:19:23 +0200 Subject: [PATCH] Change pattern of tmpfiles from .tmpXXXXXX to tmpXXXXXX Under wine, and presumably certain windows systems, filenames with more than one dot are not allowed. --- src/data/make-file.c | 2 +- tests/data/file.at | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/make-file.c b/src/data/make-file.c index b5d6d5845b..c8f3238a80 100644 --- a/src/data/make-file.c +++ b/src/data/make-file.c @@ -108,7 +108,7 @@ replace_file_start (const struct file_handle *fh, const char *mode, for (;;) { /* Generate unique temporary file name. */ - rf->tmp_name = xasprintf ("%s.tmpXXXXXX", file_name); + rf->tmp_name = xasprintf ("%stmpXXXXXX", file_name); if (gen_tempname (rf->tmp_name, 0, 0600, GT_NOCREATE) < 0) { saved_errno = errno; diff --git a/tests/data/file.at b/tests/data/file.at index b9b81deb97..50a0da9bd1 100644 --- a/tests/data/file.at +++ b/tests/data/file.at @@ -53,7 +53,7 @@ BEGIN DATA. 5 END DATA. XSAVE OUTFILE='foobar.sav'. -HOST COMMAND=[['rm foobar.sav.tmp*']]. +HOST COMMAND=[['rm foobar.savtmp*']]. EXECUTE. ]) -- 2.30.2