diff options
author | oliver <oliver@FreeBSD.org> | 2004-02-21 05:01:55 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2004-02-21 05:01:55 +0800 |
commit | 94f1d6245db7fc37a2c8b15f04547abc942b7a4b (patch) | |
tree | db14c2001a5566d004604290937d5283aad8c27d /misc/wminfo | |
parent | 6d437c2bdbbeae950360ac0f2e876a306af9d748 (diff) | |
download | freebsd-ports-gnome-94f1d6245db7fc37a2c8b15f04547abc942b7a4b.tar.gz freebsd-ports-gnome-94f1d6245db7fc37a2c8b15f04547abc942b7a4b.tar.zst freebsd-ports-gnome-94f1d6245db7fc37a2c8b15f04547abc942b7a4b.zip |
Add a patch to avoid using the same temporary filename for different plugins
Submitted by: maintainer
Diffstat (limited to 'misc/wminfo')
-rw-r--r-- | misc/wminfo/files/patch-wminfo.c | 18 |
1 files changed, 18 insertions, 0 deletions
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); + |