From 95784300217d006dc66f6fa63f876efc4c738f92 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 10 Mar 2004 01:53:57 +0000 Subject: [PATCH] chmod is more portable than fchmod. --- tools/winegcc/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winegcc/utils.c b/tools/winegcc/utils.c index 246dc61a605..5c4fa5dd279 100644 --- a/tools/winegcc/utils.c +++ b/tools/winegcc/utils.c @@ -198,8 +198,8 @@ void create_file(const char* name, int mode, const char* fmt, ...) error ("Can not create %s.", name); vfprintf(file, fmt, ap); va_end(ap); - fchmod(fileno(file), mode); fclose(file); + chmod(name, mode); } file_type get_file_type(const char* filename) -- 2.11.4.GIT