summarylogtreecommitdiffstats
path: root/0006-hylafaxplus-jobfmt-assigned-modem-to-used-modem.patch
diff options
context:
space:
mode:
authorChris Severance2019-04-12 15:55:45 -0400
committerChris Severance2019-04-12 15:55:45 -0400
commit82522b915e603645251815ad4c88aaa330b4f81a (patch)
tree25c029e1454fa426d3092539a99a7cb85169e280 /0006-hylafaxplus-jobfmt-assigned-modem-to-used-modem.patch
parent1b4b36306f515f996cfcc4e8741322c2d3c1ff0a (diff)
downloadaur-82522b915e603645251815ad4c88aaa330b4f81a.tar.gz
autu: Update to 7.0.0-1
Diffstat (limited to '0006-hylafaxplus-jobfmt-assigned-modem-to-used-modem.patch')
-rw-r--r--0006-hylafaxplus-jobfmt-assigned-modem-to-used-modem.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/0006-hylafaxplus-jobfmt-assigned-modem-to-used-modem.patch b/0006-hylafaxplus-jobfmt-assigned-modem-to-used-modem.patch
new file mode 100644
index 000000000000..0bca9bc3dc33
--- /dev/null
+++ b/0006-hylafaxplus-jobfmt-assigned-modem-to-used-modem.patch
@@ -0,0 +1,21 @@
+--- hfaxd/Jobs.c++.Arch 2018-06-27 18:15:01.000000000 -0400
++++ hfaxd/Jobs.c++ 2019-03-29 20:57:09.408205318 -0400
+@@ -2240,11 +2240,17 @@ HylaFAXServer::Jprintf(FILE* fd, const c
+ break;
+ case 'l':
+ fprintf(fd, fspec, job.pagelength);
+ break;
+ case 'm':
+- fprintf(fd, fspec, (const char*) job.modem);
++ {
++ const char *p=job.modemused;
++ if (*p == '\0') p=job.modem;
++ if (0==strcmp(p,"any")) p="";
++ if ( p[0]=='t' && p[1]=='t' && p[2]=='y') p+=3;
++ fprintf(fd, fspec, (const char*) p);
++ }
+ break;
+ case 'n':
+ fprintf(fd, fspec, " DQA"[job.notify]);
+ break;
+ case 'o':