aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-08-22 06:49:40 +0000
committerUlrich Drepper <drepper@redhat.com>2007-08-22 06:49:40 +0000
commit7d55c9eb43b69bf515f7ea7f828dc0edb9d4f501 (patch)
tree2b06e9383f5eb5a4cce8528ab3998cfaafb3de6f /stdio-common
parent0f8f993ceff73bef51763d0b8addd29b86fad061 (diff)
downloadglibc-7d55c9eb43b69bf515f7ea7f828dc0edb9d4f501.tar
glibc-7d55c9eb43b69bf515f7ea7f828dc0edb9d4f501.tar.gz
glibc-7d55c9eb43b69bf515f7ea7f828dc0edb9d4f501.tar.bz2
glibc-7d55c9eb43b69bf515f7ea7f828dc0edb9d4f501.zip
[BZ #4588]
* stdio-common/tempnam.c: Fix comment, it is not checked that TMPDIR points to a writable directory.
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/tempnam.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/stdio-common/tempnam.c b/stdio-common/tempnam.c
index c631d462d3..055604fb79 100644
--- a/stdio-common/tempnam.c
+++ b/stdio-common/tempnam.c
@@ -19,13 +19,13 @@
#include <stdio.h>
#include <string.h>
-/* Generate a unique temporary filename using up to five characters of PFX
- if it is not NULL. The directory to put this file in is searched for
- as follows: First the environment variable "TMPDIR" is checked.
- If it contains the name of a writable directory, that directory is used.
- If not and if DIR is not NULL, that value is checked. If that fails,
- P_tmpdir is tried and finally "/tmp". The storage for the filename
- is allocated by `malloc'. */
+/* Generate a unique temporary filename using up to five characters of
+ PFX if it is not NULL. The directory to put this file in is
+ searched for as follows: First the environment variable "TMPDIR" is
+ checked. If it contains the name of a directory, that directory is
+ used. If not and if DIR is not NULL, that value is checked. If
+ that fails, P_tmpdir is tried and finally "/tmp". The storage for
+ the filename is allocated by `malloc'. */
char *
tempnam (const char *dir, const char *pfx)
{