ref: 1d4ab252653dfad292a5a90f5e61e9a0cba47083
parent: 40d11cea3fac49a660b5714b18393c2e74487d54
author: cinap_lenrek <[email protected]>
date: Wed Nov 21 14:28:40 EST 2012
hgfs: remove bogus OTRUNC mode from create() call in fmktemp()
--- a/sys/src/cmd/hgfs/revlog.c
+++ b/sys/src/cmd/hgfs/revlog.c
@@ -10,7 +10,7 @@
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