Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 18169 Details for
Bug 29388
"Do we really need 3 different Motif's?"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/openmotif-2.1.30-imake-tmpdir.patch
openmotif-2.1.30-imake-tmpdir.patch (text/plain), 1.06 KB, created by
bartron
on 2003-09-22 15:48:09 UTC
(
hide
)
Description:
files/openmotif-2.1.30-imake-tmpdir.patch
Filename:
MIME Type:
Creator:
bartron
Created:
2003-09-22 15:48:09 UTC
Size:
1.06 KB
patch
obsolete
>--- config/imake/imake.c~ 2000-06-04 00:34:05.000000000 +0200 >+++ config/imake/imake.c 2003-09-17 03:41:46.000000000 +0200 >@@ -961,23 +961,38 @@ > static void get_libc_version(inFile) > FILE* inFile; > { >- char *aout = tmpnam (NULL); >+ char aout[PATH_MAX]; > FILE *fp; > const char *format = "%s -o %s -x c -"; > char *cc; > int len; > char *command; >+ char *tmpdir; >+ int tmpfd; >+ >+ if((tmpdir = getenv("TMPDIR")) != NULL && strlen(tmpdir) < (PATH_MAX-13)) >+ strcpy(aout, tmpdir); >+ else >+ strcpy(aout, "/tmp"); >+ strcat(aout, "/imakeXXXXXX"); >+ >+ if((tmpfd = mkstemp(aout)) == -1) { >+ perror("mkstemp"); >+ abort(); >+ } > > cc = getenv ("CC"); > if (cc == NULL) > cc = "gcc"; > len = strlen (aout) + strlen (format) + strlen (cc); > if (len < 128) len = 128; >- command = alloca (len); >+ if((command = alloca (len)) == NULL) >+ abort(); > > if (snprintf (command , len, format, cc, aout) == len) > abort (); > >+ close(tmpfd); > fp = popen (command, "w"); > if (fp == NULL || fprintf (fp, "%s\n", libc_c) < 0 > || pclose (fp) != 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 29388
:
18168
| 18169 |
18281
|
18283
|
18704
|
18705
|
18707
|
18708
|
20039
|
20040
|
20041
|
55420