summaryrefslogtreecommitdiffstats
path: root/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-25 21:56:20 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-25 21:56:20 +0000
commit9a9e4cc05534a94f86d3a0b80a87e3be08022942 (patch)
tree0dc4135c3a3549a5e2577c746a6924fd42cc30d0 /package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch
parent409542e005e8ebdf87f6674a9b641a4553158eb1 (diff)
backport asterisk changes from whiterussian [2300]
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2303 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch')
-rw-r--r--package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch b/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch
new file mode 100644
index 000000000..916496ea8
--- /dev/null
+++ b/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch
@@ -0,0 +1,12 @@
+diff -ruN asterisk-1.0.7-old/channels/chan_iax2.c asterisk-1.0.7-new/channels/chan_iax2.c
+--- asterisk-1.0.7-old/channels/chan_iax2.c 2005-10-25 02:06:35.000000000 +0200
++++ asterisk-1.0.7-new/channels/chan_iax2.c 2005-10-25 04:35:11.000000000 +0200
+@@ -960,7 +960,7 @@
+ last++;
+ else
+ last = s;
+- snprintf(s2, strlen(s) + 100, "/var/tmp/%s-%ld", last, (unsigned long)rand());
++ snprintf(s2, strlen(s) + 100, "/tmp/%s-%ld", last, (unsigned long)rand());
+ res = stat(s, &stbuf);
+ if (res < 0) {
+ ast_log(LOG_WARNING, "Failed to stat '%s': %s\n", s, strerror(errno));