forked from pool/Modules
17 lines
518 B
Diff
17 lines
518 B
Diff
|
diff -Naru modules-3.1.6-orig/utility.c modules-3.1.6/utility.c
|
||
|
--- modules-3.1.6-orig/utility.c 2005-03-18 16:33:39.069600000 -0600
|
||
|
+++ modules-3.1.6/utility.c 2005-03-18 19:21:19.558109353 -0600
|
||
|
@@ -835,6 +835,12 @@
|
||
|
fprintf( stdout, "/bin/rm -f %s%c", aliasfilename, cmd_separator);
|
||
|
} /** if( fopen) **/
|
||
|
} /** if( alias to set) **/
|
||
|
+#ifdef HAVE_MKSTEMP
|
||
|
+ else {
|
||
|
+ /* In this case, we don't need the temp file we created earlier. */
|
||
|
+ unlink(aliasfilename);
|
||
|
+ }
|
||
|
+#endif
|
||
|
|
||
|
free( aliasfilename);
|
||
|
|