update from texinfo
[gnulib.git] / lib / mkstemp-safer.c
index 95d315b..03a205f 100644 (file)
@@ -1,6 +1,6 @@
 /* Invoke mkstemp, but avoid some glitches.
 
-   Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2005-2007, 2009-2014 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
@@ -39,7 +39,7 @@ mkstemp_safer (char *templ)
 int
 mkostemp_safer (char *templ, int flags)
 {
-  return fd_safer (mkostemp (templ, flags));
+  return fd_safer_flag (mkostemp (templ, flags), flags);
 }
 #endif
 
@@ -49,7 +49,7 @@ mkostemp_safer (char *templ, int flags)
 int
 mkostemps_safer (char *templ, int suffixlen, int flags)
 {
-  return fd_safer (mkostemps (templ, suffixlen, flags));
+  return fd_safer_flag (mkostemps (templ, suffixlen, flags), flags);
 }
 #endif