bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fix broken build of replacement for Windows tmpfile().


From: Ben Pfaff
Subject: fix broken build of replacement for Windows tmpfile().
Date: Wed, 30 Sep 2009 21:36:47 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

I pushed the following.

commit 031df21c6364b13eda68722c44d7d08e9ce7db39
Author: Ben Pfaff <address@hidden>
Date:   Wed Sep 30 21:35:14 2009 -0700

    Fix broken build of replacement for Windows tmpfile().

diff --git a/ChangeLog b/ChangeLog
index e3694c8..50500fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-30  Ben Pfaff  <address@hidden>
+
+       Fix broken build of replacement for Windows tmpfile().
+       * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
+       flags argument added along with the 'mkostemp' module.
+
 2009-09-28  Bruno Haible  <address@hidden>
 
        Avoid identifier clash with POSIX function 'remove' defined as a macro.
diff --git a/lib/tmpfile.c b/lib/tmpfile.c
index 543e363..19c8a5e 100644
--- a/lib/tmpfile.c
+++ b/lib/tmpfile.c
@@ -1,5 +1,5 @@
 /* Create a temporary file.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -83,7 +83,7 @@ tmpfile (void)
          do
            {
              memcpy (&xtemplate[len - 6], "XXXXXX", 6);
-             if (gen_tempname (xtemplate, GT_NOCREATE) < 0)
+             if (gen_tempname (xtemplate, 0, GT_NOCREATE) < 0)
                {
                  fd = -1;
                  break;

-- 
"A computer is a state machine.
 Threads are for people who cant [sic] program state machines."
--Alan Cox




reply via email to

[Prev in Thread] Current Thread [Next in Thread]