diff options
author | Eric Blake <ebb9@byu.net> | 2009-11-02 13:19:27 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-11-04 19:07:39 -0700 |
commit | 8eb3f17fc7fd54d63cb8f92cee955b398ce63599 (patch) | |
tree | 58381234d9cc9253f7421eb584f28bb7ea565c64 /lib/mkdtemp.c | |
parent | ba79e984f96e1470e583cc1731b2f80da9de9afc (diff) | |
download | gnulib-8eb3f17fc7fd54d63cb8f92cee955b398ce63599.tar.gz |
tempname: resync from glibc
* lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
same values for __GT_FILE as glibc. Abort even when assertions
are disabled.
* lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
match its value otherwise. Allow idempotent inclusion.
* lib/mkdtemp.c (mkdtemp): Adjust caller.
* lib/mkostemp.c (mkostemp): Likewise.
* lib/mkstemp.c (mkstemp): Likewise.
* lib/tmpfile.c (tmpfile): Likewise.
* NEWS: Document this.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'lib/mkdtemp.c')
-rw-r--r-- | lib/mkdtemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkdtemp.c b/lib/mkdtemp.c index b5181d155f..7f07ee4fdf 100644 --- a/lib/mkdtemp.c +++ b/lib/mkdtemp.c @@ -31,7 +31,7 @@ char * mkdtemp (char *template) { - if (gen_tempname (template, 0, GT_DIR)) + if (gen_tempname (template, 0, 0, GT_DIR)) return NULL; else return template; |