winedump: Use fchmod() instead of doing system(chmod).
This commit is contained in:
parent
208b0c2e72
commit
8ab9a65bac
|
@ -458,7 +458,6 @@ void output_makefile (void)
|
|||
*/
|
||||
void output_install_script (void)
|
||||
{
|
||||
char cmd[128];
|
||||
FILE *install_file = open_file (OUTPUT_DLL_NAME, "_install", "w");
|
||||
|
||||
if (VERBOSE)
|
||||
|
@ -494,9 +493,8 @@ void output_install_script (void)
|
|||
OUTPUT_DLL_NAME, OUTPUT_DLL_NAME, OUTPUT_DLL_NAME, OUTPUT_DLL_NAME,
|
||||
OUTPUT_DLL_NAME, OUTPUT_DLL_NAME, OUTPUT_DLL_NAME, OUTPUT_DLL_NAME);
|
||||
|
||||
fchmod (fileno(install_file), 0755);
|
||||
fclose (install_file);
|
||||
snprintf (cmd, sizeof (cmd), "chmod a+x %s_install", OUTPUT_DLL_NAME);
|
||||
system (cmd);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue