PATCH: winedump warnings

Marcus Meissner marcus at jet.franken.de
Sat Apr 8 03:29:08 CDT 2006


Hi,

This changes output_install_script in winedump to use 
the simpler fchmod() instead of calling system(chmod).

Ciao, Marcus

Changelog:
	Use fchmod() instead of doing system(chmod).

Index: tools/winedump/output.c
===================================================================
RCS file: /home/wine/wine/tools/winedump/output.c,v
retrieving revision 1.15
diff -u -r1.15 output.c
--- tools/winedump/output.c	18 Jan 2006 16:53:32 -0000	1.15
+++ tools/winedump/output.c	8 Apr 2006 08:27:37 -0000
@@ -458,7 +458,6 @@
  */
 void  output_install_script (void)
 {
-  char cmd[128];
   FILE *install_file = open_file (OUTPUT_DLL_NAME, "_install", "w");
 
   if (VERBOSE)
@@ -494,9 +493,8 @@
            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);
 }
 
 



More information about the wine-patches mailing list