File: 09nonfaxFCLASSerror.dpatch

package info (click to toggle)
efax 1%3A0.9a-19
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 456 kB
  • ctags: 572
  • sloc: ansic: 4,629; sh: 932; makefile: 77
file content (33 lines) | stat: -rw-r--r-- 1,196 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh -e
## 09nonfaxFCLASSerror by Nigel Williams
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixed error message when non-fax-capable modem supports +FCLASS command
## DP: (Closes: #202668)

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
	-patch) patch -f --no-backup-if-mismatch --dry-run -p1 < $0 && patch -f --no-backup-if-mismatch -p1 < $0;;
	-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
	*)
		echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
		exit 1;;
esac
exit 0

@DPATCH@
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 ;