[BZ #4588]
authorUlrich Drepper <drepper@redhat.com>
Wed, 22 Aug 2007 06:49:40 +0000 (06:49 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 22 Aug 2007 06:49:40 +0000 (06:49 +0000)
* stdio-common/tempnam.c: Fix comment, it is not checked that
TMPDIR points to a writable directory.

ChangeLog
stdio-common/tempnam.c

index 1ede0e9..733b4e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-08-21  Ulrich Drepper  <drepper@redhat.com>
 
+       [BZ #4588]
+       * stdio-common/tempnam.c: Fix comment, it is not checked that
+       TMPDIR points to a writable directory.
+
        [BZ #4726]
        * resolv/res_send.c (__libc_res_nsend): Initialize all of the
        memory allocated for the name server address.
index c631d46..055604f 100644 (file)
 #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)
 {