X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmkstemp-safer.c;h=47d3b2c614dfa59b182e32f5b0de1241bdcb03e5;hb=7873eb96d23bb7d369a0ac6cd5f8e811b0147bfd;hp=95d315b030bdacc62a3543c5e6f09c31289450a6;hpb=8271e7fb801b2f7d2a5dc89e08b84d835f1376b9;p=gnulib.git diff --git a/lib/mkstemp-safer.c b/lib/mkstemp-safer.c index 95d315b03..47d3b2c61 100644 --- a/lib/mkstemp-safer.c +++ b/lib/mkstemp-safer.c @@ -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-2010 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