aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/page/filter.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-07-10 11:10:10 -0400
committerRuss Cox <rsc@swtch.com>2008-07-10 11:10:10 -0400
commita58a827f2ae0d989102dc4d8c113b9282ef177b3 (patch)
treece7b160c3393224e05a2100615c9fe48d20d2e82 /src/cmd/page/filter.c
parentc224dda84efaeb28ce66e59213f3cbfde06735ac (diff)
downloadplan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.tar.gz
plan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.tar.bz2
plan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.zip
lib9: add mode parameter to opentemp
Diffstat (limited to 'src/cmd/page/filter.c')
-rw-r--r--src/cmd/page/filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/page/filter.c b/src/cmd/page/filter.c
index 2e0482fc..f9b2a8a2 100644
--- a/src/cmd/page/filter.c
+++ b/src/cmd/page/filter.c
@@ -32,7 +32,7 @@ initfilt(Biobuf *b, int argc, char **argv, uchar *buf, int nbuf, char *type, cha
p[1] = open("/dev/null", ORDWR);
}
- ofd = opentemp(template);
+ ofd = opentemp(template, ORDWR|ORCLOSE);
switch(fork()){
case -1:
fprint(2, "fork fails: %r\n");