chmod is more portable than fchmod.

oldstable
Alexandre Julliard 2004-03-10 01:53:57 +00:00
parent 32bdfc33d2
commit 9578430021
1 changed files with 1 additions and 1 deletions

View File

@ -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)