diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-10-25 21:56:20 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-10-25 21:56:20 +0000 |
commit | 27d88d12f2ebd0694c90783788d2fe1cc5ee0026 (patch) | |
tree | 1edfeac1df8dac28b25e67904de61f9afb375b27 /openwrt/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch | |
parent | eab2f888d663c48555b66ae1e31488689e1dd4ac (diff) | |
download | upstream-27d88d12f2ebd0694c90783788d2fe1cc5ee0026.tar.gz upstream-27d88d12f2ebd0694c90783788d2fe1cc5ee0026.tar.bz2 upstream-27d88d12f2ebd0694c90783788d2fe1cc5ee0026.zip |
backport asterisk changes from whiterussian [2300]
SVN-Revision: 2303
Diffstat (limited to 'openwrt/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch')
-rw-r--r-- | openwrt/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openwrt/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch b/openwrt/package/asterisk/patches/asterisk-1.0.7-chan_iax2-tmp_path.patch new file mode 100644 index 0000000000..916496ea86 --- /dev/null +++ b/openwrt/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)); |