From f7012583e9a7594cbb5ebe8e974bb69061189262 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 25 Nov 2003 01:40:27 +0000 Subject: Add the #goo to allow use in C++. Silence a few more warnings. Strip down the mkfiles more. Fix bug in X11 mouse handling, note groups. --- src/cmd/idiff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cmd/idiff.c') diff --git a/src/cmd/idiff.c b/src/cmd/idiff.c index c3f207fe..1dc49cff 100644 --- a/src/cmd/idiff.c +++ b/src/cmd/idiff.c @@ -82,11 +82,14 @@ int opentemp(char *template, int mode, long perm) { int fd; + Dir d; fd = mkstemp(template); if(fd < 0) sysfatal("could not create temporary file"); - fchmod(fd, perm); + nulldir(&d); + d.mode = perm; + dirfwstat(fd, &d); return fd; } -- cgit v1.2.3