summaryrefslogtreecommitdiff
path: root/games-util/etswitch/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-util/etswitch/files
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-util/etswitch/files')
-rw-r--r--games-util/etswitch/files/etswitch-0.1.14-desktop-entry.patch20
-rw-r--r--games-util/etswitch/files/etswitch-0.1.14-glibc.patch12
2 files changed, 32 insertions, 0 deletions
diff --git a/games-util/etswitch/files/etswitch-0.1.14-desktop-entry.patch b/games-util/etswitch/files/etswitch-0.1.14-desktop-entry.patch
new file mode 100644
index 000000000000..f3e6b5dcd805
--- /dev/null
+++ b/games-util/etswitch/files/etswitch-0.1.14-desktop-entry.patch
@@ -0,0 +1,20 @@
+--- a/etswitch.desktop.in 2008-02-02 10:54:51.000000000 -0500
++++ b/etswitch.desktop.in 2008-02-02 11:17:40.000000000 -0500
+@@ -1,5 +1,4 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ Version=1.0
+
+ Name=ETSwitch
+@@ -15,9 +14,9 @@
+ Comment[fi_FI]=ETSwitch versio @VERSION@
+
+ Exec=etswitch --no-delay
+-Icon=etswitch.png
++Icon=etswitch
+ Terminal=false
+ Type=Application
+-Categories=Application;Game;Tool
++Categories=Game;Utility;
+ StartupNotify=true
+ StartupWMClass=ETSwitch
diff --git a/games-util/etswitch/files/etswitch-0.1.14-glibc.patch b/games-util/etswitch/files/etswitch-0.1.14-glibc.patch
new file mode 100644
index 000000000000..a51862d6722d
--- /dev/null
+++ b/games-util/etswitch/files/etswitch-0.1.14-glibc.patch
@@ -0,0 +1,12 @@
+diff -dupr etswitch-old/src/etswitch.c etswitch-0.1.14/src/etswitch.c
+--- etswitch-old/src/etswitch.c 2009-02-24 11:20:29.594339029 +0100
++++ etswitch-0.1.14/src/etswitch.c 2009-02-24 11:28:12.100463404 +0100
+@@ -461,7 +461,7 @@ int main(int argc, char *argv[]){
+ /* setup lock, fixme */
+ /* use temp var */
+ lock_file = "/tmp/.etswitch.pid"; /* now this isnt failsafe but at least something */
+- lock_fd = open(lock_file, O_CREAT | O_RDWR);
++ lock_fd = open(lock_file, O_CREAT | O_RDWR, 0600);
+ if (lock_fd < 0) {
+ #ifdef DEBUG
+ fprintf(stdout, "'%s' allready exits, will try to open.\n",lock_file);