lib9: add mode parameter to opentemp
This commit is contained in:
parent
c224dda84e
commit
a58a827f2a
9 changed files with 23 additions and 34 deletions
|
|
@ -732,7 +732,7 @@ viewer(Document *dd)
|
|||
}
|
||||
if(showdata(pm)) {
|
||||
s = estrdup("/tmp/pageplumbXXXXXXX");
|
||||
fd = opentemp(s);
|
||||
fd = opentemp(s, ORDWR|ORCLOSE);
|
||||
write(fd, pm->data, pm->ndata);
|
||||
/* lose fd reference on purpose; the file is open ORCLOSE */
|
||||
} else if(pm->data[0] == '/') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue