This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: L_tmpnam in stdio_lim.h


On Sat, 10 Oct 1998 22:24:45 +0900 (JST), NIIBE Yutaka wrote:
>Hi,  
>
>I changed my environment to GNU Libc 2.0.97 from 2.0.94.  I've found
>imake core dumps when I set TMPDIR=/var/tmp.
>
>This is because imake calls tmpnam with NULL argument and doesn't
>check its return value.
>
>But if it L_tmpnam is more than or equal to 20, imake wouldn't dump
>core... (sizeof ("/var/tmp/fileXXXXXX") == 20). 
>
>Is there any reason why L_tmpnam is 19?

I miscounted when I redid that file.  Try this patch.

zw

============================================================
Index: Rules
--- Rules	1998/09/16 17:40:23	1.83
+++ Rules	1998/10/10 21:08:04
@@ -209,7 +209,7 @@
 L_ctermid = 1
 L_cuserid = 1
 else
-L_tmpnam  = 19
+L_tmpnam  = 20
 TMP_MAX   = 238328
 L_ctermid = 9
 L_cuserid = 9


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]