lib9: add mode parameter to opentemp

This commit is contained in:
Russ Cox
2008-07-10 11:10:10 -04:00
parent c224dda84e
commit a58a827f2a
9 changed files with 23 additions and 34 deletions

View File

@@ -53,7 +53,7 @@ spooltodisk(uchar *ibuf, int in, char **name)
char temp[40];
strcpy(temp, "/tmp/pagespoolXXXXXXXXX");
fd = opentemp(temp);
fd = opentemp(temp, ORDWR|ORCLOSE);
if(name)
*name = estrdup(temp);