604.1.7
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
604.1.6
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
604.1.5
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
604.1.4
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
604.1.3
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
604.1.2
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
604.1.1
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
604
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
603
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
602
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
601
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
600
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
599
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
598
|
|
|
Matthew Fuller |
|
7 years ago
|
 |
|
597
|
|
Patch over a bug in generating the temp file for m4 stuff.
When multiple X Screen's are used, we run through building the m4 config file bits for each, since some of the defs change. That means multiple runs through m4_defs() to build the file, which means multiple mkstemp() calls to build the temp file. But since tmp_name is static, the second time through it would already have filled out the temporary name.
This is sorta safe absent malice, since we'd already have a safe file the first time around, so it would take somebody trying to race with us to make us overwrite something. But perhaps not entirely, and malice is out there. And some implementations of mkstemp() (e.g., glibc) will error out if the template filename doesn't contain an actual template, which means running with multiple Screens on those systems will actually lead to ctwm perror()'ing.
Since it's returning that var, we can't just make it non-static, so re-initialize it with the string each time through. A larger solution should probably restructure things a little around this code...
See also: https://bugs.gentoo.org/show_bug.cgi?id=621024
|
Matthew Fuller |
|
8 years ago
|
 |
|
596
|
|
|
Matthew Fuller |
|
8 years ago
|
 |
|
595
|
|
|
Matthew Fuller |
ctwm-4.0.1 |
8 years ago
|
 |
|
594
|
|
|
Matthew Fuller |
|
8 years ago
|
 |
|
593
|
|
|
Matthew Fuller |
|
8 years ago
|
 |
|
592
|
|
|
Matthew Fuller |
|
8 years ago
|
 |
|