From: Ben Pfaff Date: Tue, 9 Oct 2007 03:50:20 +0000 (+0000) Subject: Fix bug #21280. Thanks to John Darrington for review. X-Git-Tag: v0.6.0~230 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1fb96f07a06f3133f54702ed8706493989789fe;hp=e1fb96f07a06f3133f54702ed8706493989789fe;p=pspp-builds.git Fix bug #21280. Thanks to John Darrington for review. * automake.mk: Add new file. * bugs/overwrite-input-file.sh: New test. * file-name.c (create_stream): New function. * por-file-writer.c (pfm_open_writer): Use fh_open to open the file handle before creating the file, to ensure that we don't truncate a file that we're reading. Make code easier to read by using create_stream. ---