From: John Darrington Date: Tue, 20 Oct 2015 09:19:23 +0000 (+0200) Subject: Change pattern of tmpfiles from .tmpXXXXXX to tmpXXXXXX X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=232b19c50410590a705a9f4917c20500fb15c100;p=pspp Change pattern of tmpfiles from .tmpXXXXXX to tmpXXXXXX Under wine, and presumably certain windows systems, filenames with more than one dot are not allowed. --- 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. ])