File: 09nonfaxFCLASSerror.diff

package info (click to toggle)
efax 1%3A0.9a-25
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 828 kB
  • sloc: ansic: 6,763; sh: 4,039; makefile: 80
file content (16 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Nigel Williams <nigelw+debian@elder-gods.net>
Date: Thu, 24 Jul 2003 17:40:03 +1000
Subject: Fixed error message when non-fax-capable modem supports +FCLASS command (Closes: #202668)

diff -r -U3 efax-0.9a/efax.c efax-0.9a+patch/efax.c
--- efax-0.9a/efax.c	2000-11-15 04:22:09.000000000 +1100
+++ efax-0.9a+patch/efax.c	2003-07-24 16:56:08.000000000 +1000
@@ -2069,6 +2069,7 @@
       if ( strinresp ( "2.0" ) ) c20 = 1 ;
       else if ( strinresp ( "2" ) ) ;
       else if ( strinresp ( "1" ) ) c1 = 1 ;
+      else if ( strinresp ( "0" ) ) err = msg ("E3 modem does not support fax" ) ;
       else err = msg ("E3 can't determine fax modem class support" ) ;
       if ( strstr ( model, "Sportster" ) ) { /* USR Sporsters are buggy */
 	c1 = 1 ;