| commit | 95784300217d006dc66f6fa63f876efc4c738f92 | [log] [tgz] |
|---|---|---|
| author | Alexandre Julliard <julliard@winehq.org> | Wed Mar 10 01:53:57 2004 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Wed Mar 10 01:53:57 2004 +0000 |
| tree | b5deabde1cd0588cb6ad576936e0e16da684b972 | |
| parent | 32bdfc33d2247c82eaf1ba0053297479ffc5e871 [diff] |
chmod is more portable than fchmod.
diff --git a/tools/winegcc/utils.c b/tools/winegcc/utils.c index 246dc61..5c4fa5d 100644 --- a/tools/winegcc/utils.c +++ b/tools/winegcc/utils.c
@@ -198,8 +198,8 @@ 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)