diff options
author | Jim Meyering <meyering@redhat.com> | 2009-09-18 23:05:59 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-09-19 11:16:56 +0200 |
commit | 99f59aaaf89d8f0c4c69d5f357c6b02caf8efd53 (patch) | |
tree | 1ba2653fbdeaf127e0a9ef711ba0272a20f6542b /src | |
parent | 6504d7e1935ecd9bf38f197ab03b6ada810d81b1 (diff) | |
download | coreutils-99f59aaaf89d8f0c4c69d5f357c6b02caf8efd53.tar.xz |
mktemp: adapt to new, 3-argument gen_tempname_len
* src/mktemp.c (mkstemp_len, mkdtemp_len): Update callers of
gen_tempname_len.
* gl/lib/tempname.c, gl/lib/tempname.h: Rebase against recently
API-modified copy of tempname module in gnulib.
Reported by LluĂs Batlle.
Diffstat (limited to 'src')
-rw-r--r-- | src/mktemp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mktemp.c b/src/mktemp.c index a9a8708ca..d5a68cf47 100644 --- a/src/mktemp.c +++ b/src/mktemp.c @@ -114,13 +114,13 @@ count_trailing_X_s (const char *s) static int mkstemp_len (char *tmpl, size_t suff_len, bool dry_run) { - return gen_tempname_len (tmpl, dry_run ? GT_NOCREATE : GT_FILE, suff_len); + return gen_tempname_len (tmpl, 0, dry_run ? GT_NOCREATE : GT_FILE, suff_len); } static int mkdtemp_len (char *tmpl, size_t suff_len, bool dry_run) { - return gen_tempname_len (tmpl, dry_run ? GT_NOCREATE : GT_DIR, suff_len); + return gen_tempname_len (tmpl, 0, dry_run ? GT_NOCREATE : GT_DIR, suff_len); } int |