diff options
Diffstat (limited to 'contrib/asterisk-xip/patches/013-chan_iax2-tmp_path.patch')
-rw-r--r-- | contrib/asterisk-xip/patches/013-chan_iax2-tmp_path.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/asterisk-xip/patches/013-chan_iax2-tmp_path.patch b/contrib/asterisk-xip/patches/013-chan_iax2-tmp_path.patch new file mode 100644 index 0000000000..12b64d758c --- /dev/null +++ b/contrib/asterisk-xip/patches/013-chan_iax2-tmp_path.patch @@ -0,0 +1,12 @@ +diff -Nru asterisk-1.4.22.org/channels/chan_iax2.c asterisk-1.4.22/channels/chan_iax2.c +--- asterisk-1.4.22.org/channels/chan_iax2.c 2008-09-02 20:14:57.000000000 +0200 ++++ asterisk-1.4.22/channels/chan_iax2.c 2008-11-29 15:00:00.000000000 +0100 +@@ -1815,7 +1815,7 @@ + last++; + else + last = s; +- snprintf(s2, strlen(s) + 100, "/var/tmp/%s-%ld", last, (unsigned long)ast_random()); ++ snprintf(s2, strlen(s) + 100, "/tmp/%s-%ld", last, (unsigned long)ast_random()); + res = stat(s, &stbuf); + if (res < 0) { + ast_log(LOG_WARNING, "Failed to stat '%s': %s\n", s, strerror(errno)); |