Fix runtime segfault due to uninitialised variable, bump PORTREVISION

While on it:
- Pet portlint: regenerate patches using 'make makepatch'
- Add LICENSE

PR:		204845
Submitted by:	yama@jasper.co.jp
MFH:		2015Q4 (ports-secteam fix blanket)
This commit is contained in:
Thomas Zander 2015-11-29 16:52:05 +00:00
parent 1b60e3f502
commit 4745b45b5a
4 changed files with 51 additions and 12 deletions

View file

@ -3,13 +3,16 @@
PORTNAME= efax-0.9a
PORTVERSION= 001114a7
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= comms
MASTER_SITES= http://shino.pos.to/linux/
MAINTAINER= ports@FreeBSD.org
COMMENT= Fax send/receive program
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS=xloadimage:${PORTSDIR}/x11/xloadimage
DOCSDIR= ${PREFIX}/share/doc/efax

View file

@ -1,5 +1,5 @@
--- Makefile.orig Wed Jun 28 19:01:22 2000
+++ Makefile Sun Oct 20 03:06:13 2002
--- Makefile.orig 2000-06-29 02:01:22 UTC
+++ Makefile
@@ -3,20 +3,17 @@
# Change the following to the name of your ANSI C compiler
# (normally gcc).
@ -24,7 +24,7 @@
.c.o:
$(CC) $(CFLAGS) -c $<
@@ -32,11 +29,9 @@
@@ -32,11 +29,9 @@ efix: efix.o efaxlib.o efaxmsg.o
strip efix
install:

View file

@ -0,0 +1,36 @@
--- efaxmsg.c.orig 1999-03-20 04:38:20 UTC
+++ efaxmsg.c
@@ -98,9 +98,6 @@ int msg ( char *fmt, ... )
int err=0, i, flags=0 ;
char *p ;
- va_list ap ;
- va_start ( ap, fmt ) ;
-
if ( ! init ) {
logfile[0] = stderr ;
logfile[1] = stdout ;
@@ -112,6 +109,9 @@ int msg ( char *fmt, ... )
for ( i=0 ; i<NLOG ; i++ ) {
+ va_list ap ;
+ va_start ( ap, fmt ) ;
+
for ( p=fmt ; *p ; p++ ) {
switch ( *p ) {
case ' ': p++ ; goto print ;
@@ -148,11 +148,11 @@ int msg ( char *fmt, ... )
if ( ! ( flags & NOFLSH ) ) fflush ( logfile[i] ) ;
}
+
+ va_end ( ap ) ;
}
- va_end ( ap ) ;
-
return err ;
}

View file

@ -1,6 +1,6 @@
--- fax.orig Sat May 11 12:39:37 2002
+++ fax Sat May 11 13:42:33 2002
@@ -24,7 +24,7 @@
--- fax.orig 2002-02-02 13:14:08 UTC
+++ fax
@@ -24,7 +24,7 @@ echo "fax: version 0.9001114a7 (30 Jan 2
# - do not put spaces before or after the equal (=) signs.
#
# - variables can also be set on the command line, for example:
@ -9,7 +9,7 @@
# or in a configuration file (see CONFIGFILES below)
#
@@ -36,16 +36,16 @@
@@ -36,16 +36,16 @@ EFAX=efax
EFIX=efix
# The device to which the fax modem is connected (e.g. ttya for
@ -30,7 +30,7 @@
# Your fax number in international format, 20 characters maximum.
# Use only digits, spaces, and the "+" character.
@@ -98,7 +98,8 @@
@@ -98,7 +98,8 @@ DIALSUFFIX=""
# conventions. Protect with single quotes for delayed evaluation.
# Add a leading '#' to the file name to use binary format.
@ -40,7 +40,7 @@
# LOCK='-x /usr/spool/uucp/LCK..$DEV' # older systems
# LOCK='-x /var/lock/LCK..$DEV -x /var/spool/uucp/LCK..$DEV' # both
# LOCK='-x #/usr/spool/uucp/LCK..$DEV' # binary format
@@ -124,7 +125,7 @@
@@ -124,7 +125,7 @@ LOCK='-x /var/lock/LCK..$DEV' # moder
# out if you don't need to use config files. Warning: any type of
# shell command in these files will be executed.
@ -49,7 +49,7 @@
# A command that will generate unique names for logs and received
# files. 'date +%m%d%H%M%S' works on most systems. Protect with
@@ -421,9 +422,9 @@
@@ -421,9 +422,9 @@ VCMD="exec $FONE %d"
# efax even if a previous process (e.g. login) has changed it.
# Comment out if you don't need to reset device ownership.
@ -62,7 +62,7 @@
# Regular expression for efax exit codes in log files that will
# *not* be saved. For example, use [145] to ignore exits due to
@@ -1101,7 +1102,7 @@
@@ -1101,7 +1102,7 @@ cat 1>&2 <<EOF
if given no arguments, answers the phone and receives a fax.