summaryrefslogtreecommitdiff
path: root/audio/cmus/patches
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cmus/patches')
-rw-r--r--audio/cmus/patches/cmus-2.2.0-new-ffmpeg.patch15
-rw-r--r--audio/cmus/patches/cmus-2.2.0-symlink_attack.patch12
2 files changed, 27 insertions, 0 deletions
diff --git a/audio/cmus/patches/cmus-2.2.0-new-ffmpeg.patch b/audio/cmus/patches/cmus-2.2.0-new-ffmpeg.patch
new file mode 100644
index 0000000000..89812b21b1
--- /dev/null
+++ b/audio/cmus/patches/cmus-2.2.0-new-ffmpeg.patch
@@ -0,0 +1,15 @@
+--- cmus-2.2.0-orig/ffmpeg.c 2007-07-27 16:52:13.000000000 +0200
++++ cmus-2.2.0/ffmpeg.c 2008-04-25 16:32:40.000000000 +0200
+@@ -18,9 +18,9 @@
+ */
+
+ #include <stdio.h>
+-#include <ffmpeg/avcodec.h>
+-#include <ffmpeg/avformat.h>
+-#include <ffmpeg/avio.h>
++#include <libavcodec/avcodec.h>
++#include <libavformat/avformat.h>
++#include <libavformat/avio.h>
+
+ #include "ip.h"
+ #include "xmalloc.h"
diff --git a/audio/cmus/patches/cmus-2.2.0-symlink_attack.patch b/audio/cmus/patches/cmus-2.2.0-symlink_attack.patch
new file mode 100644
index 0000000000..3c3e09c55c
--- /dev/null
+++ b/audio/cmus/patches/cmus-2.2.0-symlink_attack.patch
@@ -0,0 +1,12 @@
+diff -ur cmus-2.2.0.orig/cmus-status-display cmus-2.2.0/cmus-status-display
+--- cmus-2.2.0.orig/cmus-status-display 2007-07-27 17:52:13.000000000 +0300
++++ cmus-2.2.0/cmus-status-display 2009-05-12 09:12:56.000000000 +0300
+@@ -19,7 +19,7 @@
+ output()
+ {
+ # write status to /tmp/cmus-status (not very useful though)
+- echo "$*" >> /tmp/cmus-status 2>&1
++ echo "$*" >> ~/.cmus-status 2>&1
+
+ # WMI (http://wmi.modprobe.de/)
+ #wmiremote -t "$*" &> /dev/null