Commit 95784300 authored by Alexandre Julliard's avatar Alexandre Julliard

chmod is more portable than fchmod.

parent 32bdfc33
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment