summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-11-21 19:28:40 +0100
committercinap_lenrek <cinap_lenrek@gmx.de>2012-11-21 19:28:40 +0100
commit1d4ab252653dfad292a5a90f5e61e9a0cba47083 (patch)
tree7e1817c968ebd78f776a2e0763a9e184b1649a1c
parent40d11cea3fac49a660b5714b18393c2e74487d54 (diff)
hgfs: remove bogus OTRUNC mode from create() call in fmktemp()
-rw-r--r--sys/src/cmd/hgfs/revlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/hgfs/revlog.c b/sys/src/cmd/hgfs/revlog.c
index a90363b2e..7e5ec70da 100644
--- a/sys/src/cmd/hgfs/revlog.c
+++ b/sys/src/cmd/hgfs/revlog.c
@@ -10,7 +10,7 @@ fmktemp(void)
static ulong id = 1;
char path[MAXPATH];
snprint(path, sizeof(path), "/tmp/hg%.12d%.8lux", getpid(), id++);
- return create(path, OEXCL|OTRUNC|ORDWR|ORCLOSE, 0600);
+ return create(path, OEXCL|ORDWR|ORCLOSE, 0600);
}
void