diff options
author | Russ Cox <rsc@swtch.com> | 2008-07-10 11:10:10 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-07-10 11:10:10 -0400 |
commit | a58a827f2ae0d989102dc4d8c113b9282ef177b3 (patch) | |
tree | ce7b160c3393224e05a2100615c9fe48d20d2e82 /src/cmd/vbackup | |
parent | c224dda84efaeb28ce66e59213f3cbfde06735ac (diff) | |
download | plan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.tar.gz plan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.tar.bz2 plan9port-a58a827f2ae0d989102dc4d8c113b9282ef177b3.zip |
lib9: add mode parameter to opentemp
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r-- | src/cmd/vbackup/vbackup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/vbackup/vbackup.c b/src/cmd/vbackup/vbackup.c index 07000b1f..db26bc32 100644 --- a/src/cmd/vbackup/vbackup.c +++ b/src/cmd/vbackup/vbackup.c @@ -260,7 +260,7 @@ threadmain(int argc, char **argv) if(tmpnam == nil) sysfatal("smprint: %r"); - if((fd = opentemp(tmpnam)) < 0) + if((fd = opentemp(tmpnam, ORDWR|ORCLOSE)) < 0) sysfatal("opentemp %s: %r", tmpnam); if(statustime) print("# %T reading scores into %s\n", tmpnam); |