summaryrefslogtreecommitdiff
path: root/audio/cmus/patches/cmus-2.2.0-symlink_attack.patch
blob: 3c3e09c55cfe6761bc2fad09ae486e41864ae048 (plain)
1
2
3
4
5
6
7
8
9
10
11
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