From 94f1d6245db7fc37a2c8b15f04547abc942b7a4b Mon Sep 17 00:00:00 2001 From: oliver Date: Fri, 20 Feb 2004 21:01:55 +0000 Subject: Add a patch to avoid using the same temporary filename for different plugins Submitted by: maintainer --- misc/wminfo/files/patch-wminfo.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 misc/wminfo/files/patch-wminfo.c (limited to 'misc/wminfo') diff --git a/misc/wminfo/files/patch-wminfo.c b/misc/wminfo/files/patch-wminfo.c new file mode 100644 index 000000000000..7615cecbe3cf --- /dev/null +++ b/misc/wminfo/files/patch-wminfo.c @@ -0,0 +1,18 @@ +--- wminfo.c.orig Thu Feb 19 21:22:58 2004 ++++ wminfo.c Thu Feb 19 21:24:27 2004 +@@ -142,9 +142,11 @@ + + strcpy(plugin_exec,"sh "); + strcat(plugin_exec,plugin); +- strcat(plugin_exec," > wmiout.tmp"); +- strcpy(plugin_out,getenv("PWD")); +- strcat(plugin_out,"/wmiout.tmp"); ++ strcat(plugin_exec," > "); ++ strcat(plugin_exec,plugin); ++ strcat(plugin_exec,".tmp"); ++ strcpy(plugin_out,plugin); ++ strcat(plugin_out,".tmp"); + + createXBMfromXPM(wminfo_mask_bits, wminfo_xpm, wminfo_mask_width, wminfo_mask_height); + openXwindow(argc, argv, wminfo_xpm, wminfo_mask_bits, wminfo_mask_width, wminfo_mask_height); + -- cgit