/* Invoke mkstemp, but avoid some glitches.
- Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2005-2007, 2009-2011 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
int
mkostemp_safer (char *templ, int flags)
{
- return fd_safer (mkostemp (templ, flags));
+ return fd_safer_flag (mkostemp (templ, flags), flags);
}
#endif
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