head 1.11; access; symbols pkgsrc-2026Q1:1.11.0.86 pkgsrc-2026Q1-base:1.11 pkgsrc-2025Q4:1.11.0.84 pkgsrc-2025Q4-base:1.11 pkgsrc-2025Q3:1.11.0.82 pkgsrc-2025Q3-base:1.11 pkgsrc-2025Q2:1.11.0.80 pkgsrc-2025Q2-base:1.11 pkgsrc-2025Q1:1.11.0.78 pkgsrc-2025Q1-base:1.11 pkgsrc-2024Q4:1.11.0.76 pkgsrc-2024Q4-base:1.11 pkgsrc-2024Q3:1.11.0.74 pkgsrc-2024Q3-base:1.11 pkgsrc-2024Q2:1.11.0.72 pkgsrc-2024Q2-base:1.11 pkgsrc-2024Q1:1.11.0.70 pkgsrc-2024Q1-base:1.11 pkgsrc-2023Q4:1.11.0.68 pkgsrc-2023Q4-base:1.11 pkgsrc-2023Q3:1.11.0.66 pkgsrc-2023Q3-base:1.11 pkgsrc-2023Q2:1.11.0.64 pkgsrc-2023Q2-base:1.11 pkgsrc-2023Q1:1.11.0.62 pkgsrc-2023Q1-base:1.11 pkgsrc-2022Q4:1.11.0.60 pkgsrc-2022Q4-base:1.11 pkgsrc-2022Q3:1.11.0.58 pkgsrc-2022Q3-base:1.11 pkgsrc-2022Q2:1.11.0.56 pkgsrc-2022Q2-base:1.11 pkgsrc-2022Q1:1.11.0.54 pkgsrc-2022Q1-base:1.11 pkgsrc-2021Q4:1.11.0.52 pkgsrc-2021Q4-base:1.11 pkgsrc-2021Q3:1.11.0.50 pkgsrc-2021Q3-base:1.11 pkgsrc-2021Q2:1.11.0.48 pkgsrc-2021Q2-base:1.11 pkgsrc-2021Q1:1.11.0.46 pkgsrc-2021Q1-base:1.11 pkgsrc-2020Q4:1.11.0.44 pkgsrc-2020Q4-base:1.11 pkgsrc-2020Q3:1.11.0.42 pkgsrc-2020Q3-base:1.11 pkgsrc-2020Q2:1.11.0.38 pkgsrc-2020Q2-base:1.11 pkgsrc-2020Q1:1.11.0.18 pkgsrc-2020Q1-base:1.11 pkgsrc-2019Q4:1.11.0.40 pkgsrc-2019Q4-base:1.11 pkgsrc-2019Q3:1.11.0.36 pkgsrc-2019Q3-base:1.11 pkgsrc-2019Q2:1.11.0.34 pkgsrc-2019Q2-base:1.11 pkgsrc-2019Q1:1.11.0.32 pkgsrc-2019Q1-base:1.11 pkgsrc-2018Q4:1.11.0.30 pkgsrc-2018Q4-base:1.11 pkgsrc-2018Q3:1.11.0.28 pkgsrc-2018Q3-base:1.11 pkgsrc-2018Q2:1.11.0.26 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.11.0.24 pkgsrc-2018Q1-base:1.11 pkgsrc-2017Q4:1.11.0.22 pkgsrc-2017Q4-base:1.11 pkgsrc-2017Q3:1.11.0.20 pkgsrc-2017Q3-base:1.11 pkgsrc-2017Q2:1.11.0.16 pkgsrc-2017Q2-base:1.11 pkgsrc-2017Q1:1.11.0.14 pkgsrc-2017Q1-base:1.11 pkgsrc-2016Q4:1.11.0.12 pkgsrc-2016Q4-base:1.11 pkgsrc-2016Q3:1.11.0.10 pkgsrc-2016Q3-base:1.11 pkgsrc-2016Q2:1.11.0.8 pkgsrc-2016Q2-base:1.11 pkgsrc-2016Q1:1.11.0.6 pkgsrc-2016Q1-base:1.11 pkgsrc-2015Q4:1.11.0.4 pkgsrc-2015Q4-base:1.11 pkgsrc-2015Q3:1.11.0.2 pkgsrc-2015Q3-base:1.11 pkgsrc-2015Q2:1.10.0.20 pkgsrc-2015Q2-base:1.10 pkgsrc-2015Q1:1.10.0.18 pkgsrc-2015Q1-base:1.10 pkgsrc-2014Q4:1.10.0.16 pkgsrc-2014Q4-base:1.10 pkgsrc-2014Q3:1.10.0.14 pkgsrc-2014Q3-base:1.10 pkgsrc-2014Q2:1.10.0.12 pkgsrc-2014Q2-base:1.10 pkgsrc-2014Q1:1.10.0.10 pkgsrc-2014Q1-base:1.10 pkgsrc-2013Q4:1.10.0.8 pkgsrc-2013Q4-base:1.10 pkgsrc-2013Q3:1.10.0.6 pkgsrc-2013Q3-base:1.10 pkgsrc-2013Q2:1.10.0.4 pkgsrc-2013Q2-base:1.10 pkgsrc-2013Q1:1.10.0.2 pkgsrc-2013Q1-base:1.10 pkgsrc-2012Q4:1.9.0.6 pkgsrc-2012Q4-base:1.9 pkgsrc-2012Q3:1.9.0.4 pkgsrc-2012Q3-base:1.9 pkgsrc-2012Q2:1.9.0.2 pkgsrc-2012Q2-base:1.9 pkgsrc-2012Q1:1.7.0.2 pkgsrc-2012Q1-base:1.7 pkgsrc-2011Q4:1.6.0.20 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.18 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.16 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.14 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.12 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.10 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.8 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.6 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.4 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.2 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.5.0.24 pkgsrc-2009Q2-base:1.5 pkgsrc-2009Q1:1.5.0.22 pkgsrc-2009Q1-base:1.5 pkgsrc-2008Q4:1.5.0.20 pkgsrc-2008Q4-base:1.5 pkgsrc-2008Q3:1.5.0.18 pkgsrc-2008Q3-base:1.5 cube-native-xorg:1.5.0.16 cube-native-xorg-base:1.5 pkgsrc-2008Q2:1.5.0.14 pkgsrc-2008Q2-base:1.5 cwrapper:1.5.0.12 pkgsrc-2008Q1:1.5.0.10 pkgsrc-2008Q1-base:1.5 pkgsrc-2007Q4:1.5.0.8 pkgsrc-2007Q4-base:1.5 pkgsrc-2007Q3:1.5.0.6 pkgsrc-2007Q3-base:1.5 pkgsrc-2007Q2:1.5.0.4 pkgsrc-2007Q2-base:1.5 pkgsrc-2007Q1:1.5.0.2 pkgsrc-2007Q1-base:1.5 pkgsrc-2006Q4:1.4.0.8 pkgsrc-2006Q4-base:1.4 pkgsrc-2006Q3:1.4.0.6 pkgsrc-2006Q3-base:1.4 pkgsrc-2006Q2:1.4.0.4 pkgsrc-2006Q2-base:1.4 pkgsrc-2006Q1:1.4.0.2 pkgsrc-2006Q1-base:1.4 pkgsrc-2005Q4:1.3.0.8 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.6 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.4 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.2 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.2.0.10 pkgsrc-2004Q4-base:1.2 pkgsrc-2004Q3:1.2.0.8 pkgsrc-2004Q3-base:1.2 pkgsrc-2004Q2:1.2.0.6 pkgsrc-2004Q2-base:1.2 pkgsrc-2004Q1:1.2.0.4 pkgsrc-2004Q1-base:1.2 pkgsrc-2003Q4:1.2.0.2 pkgsrc-2003Q4-base:1.2 netbsd-1-6-1:1.1.0.6 netbsd-1-6-1-base:1.1 netbsd-1-6:1.1.0.8 netbsd-1-6-RELEASE-base:1.1 pkgviews:1.1.0.4 pkgviews-base:1.1 buildlink2:1.1.0.2 buildlink2-base:1.1 netbsd-1-5-PATCH003:1.1; locks; strict; comment @# @; 1.11 date 2015.08.21.11.03.44; author is; state Exp; branches; next 1.10; commitid ZrhECv7LtSIqT7yy; 1.10 date 2013.01.29.16.56.39; author is; state Exp; branches; next 1.9; 1.9 date 2012.04.08.00.47.27; author dholland; state Exp; branches; next 1.8; 1.8 date 2012.04.08.00.04.12; author dholland; state Exp; branches; next 1.7; 1.7 date 2012.02.16.17.29.25; author hans; state Exp; branches; next 1.6; 1.6 date 2009.10.02.19.21.59; author is; state Exp; branches; next 1.5; 1.5 date 2007.03.01.17.09.00; author wiz; state Exp; branches; next 1.4; 1.4 date 2006.03.20.04.09.37; author jlam; state dead; branches; next 1.3; 1.3 date 2005.03.07.11.29.28; author wiz; state Exp; branches; next 1.2; 1.2 date 2003.09.20.16.39.38; author fredb; state Exp; branches; next 1.1; 1.1 date 2001.06.21.17.02.24; author fredb; state Exp; branches; next ; desc @@ 1.11 log @Workaround for NetBSD-6, but problem not understood: sendfax would overflow the modem with data when FLOW_HARD (FLOWHARD|FLOW_SOFT) was used. @ text @$NetBSD$ - improve default configuration behavior for the modern world - configure for pkgsrc - DEVICE_GROUP is set from the pkgsrc makefile, so avoid compiler warnings by not defining it again when it's already set. - honor PREFIX and VARBASE in paths - turn on AUTO_PPP (whatever that is...?) - no FLOW_HARD for fax-sending (for netbsd6) --- policy.h.orig 2015-08-20 10:26:33.000000000 +0000 +++ policy.h @@@@ -48,7 +48,12 @@@@ * Normally, this is "/bin/login", just a few systems put "login" * elsewhere (e.g. Free/NetBSD in "/usr/bin/login"). */ +#if defined(__NetBSD__) || defined(__FreeBSD__) ||\ + defined(__OpenBSD__) || defined (__DragonFly__) +#define DEFAULT_LOGIN_PROGRAM "/usr/bin/login" +#else #define DEFAULT_LOGIN_PROGRAM "/bin/login" +#endif /* FidoNet mailer support * @@@@ -86,7 +91,7 @@@@ * If the path doesn't start with "/", it's relative to CONFDIR. */ /* #define CNDFILE "dialin.config" */ - +#define CNDFILE "dialin.config" /* If you want to use /etc/gettydefs to set tty flags, define this * I recommend against it, I suspect some bugs lingering in that code @@@@ -114,7 +119,9 @@@@ /* group id that the device is chown()ed to. If not defined, the * primary group of "DEVICE_OWNER" is used. */ +#ifndef DEVICE_GROUP #define DEVICE_GROUP "modem" +#endif /* access mode for the line while getty has it - it should be accessible * by uucp / uucp, but not by others (imagine someone dialing into your @@@@ -147,7 +154,9 @@@@ * * if the directory does not exist, the log file goes to CONSOLE (!) */ -#define LOG_PATH "/var/log/mgetty.%s" +#define STR1(x) #x +#define STR(x) STR1(x) +#define LOG_PATH STR(VARBASE) "/log/mgetty.%s" /* Default log error level threshold. Possible error levels are * L_FATAL, L_ERROR, L_AUDIT, L_WARN, L_MESG, L_NOISE, L_JUNK (see mgetty.h) @@@@ -233,6 +242,7 @@@@ */ /* for a few systems, you can just take those defaults and be happy */ +/* pkgsrc note: these should *not* use VARBASE */ #if defined (SVR4) || defined(sunos4) # define LOCK_PATH "/var/spool/locks" # define LOCK "/var/spool/locks/LCK..%s" @@@@ -439,7 +449,7 @@@@ * that fax sending will time out after the first page sent (no ACK received) * and fail if FLOW_HARD is used. Use FLOW_SOFT instead. */ -#define FAXSEND_FLOW FLOW_HARD | FLOW_SOFT +#define FAXSEND_FLOW FLOW_SOFT /* if your faxmodem switches port bit rate just after sending the "+FCON" * message to the host, define this to contain the baudrate used. (Not @@@@ -459,7 +469,8 @@@@ * watch out: if you run 'sendfax' as non-privileged user (user 'fax' etc.) * you might need to create this file manually and chown it to 'fax' */ -#define FAX_LOG "/var/log/sendfax.log" +/*#define FAX_LOG "/var/log/sendfax.log" */ /* original */ +#define FAX_LOG STR(VARBASE) "/spool/fax/Faxlog" /* local station ID (your fax number) * 20 character string, most faxmodem allow all ascii characters 32..127, @@@@ -552,20 +563,15 @@@@ */ #ifdef SVR4 # define MAILER "/usr/bin/mailx -s 'Incoming facsimile message'" -#else -# if defined(_AIX) || defined(__NetBSD__) || defined(linux) -# define MAILER "/usr/sbin/sendmail" -# define NEED_MAIL_HEADERS -# endif -# ifdef M_UNIX /* SCO */ -# define MAILER "/usr/lib/mail/execmail" -# define NEED_MAIL_HEADERS -# endif -#endif - -#ifndef MAILER +#elif defined(M_UNIX) /* SCO */ +# define MAILER "/usr/lib/mail/execmail" +# define NEED_MAIL_HEADERS +#elif defined(__IRIX__) # define MAILER "/usr/lib/sendmail" # define NEED_MAIL_HEADERS +#else /* modern standard -- AIX, *BSD, Linux, etc. */ +# define MAILER "/usr/sbin/sendmail" +# define NEED_MAIL_HEADERS #endif /* where to send notify mail about incoming faxes to @@@@ -586,13 +592,18 @@@@ * If you don't want this type of service, do not define it at all * Absolute path name has to be used here! */ -#define FAX_NOTIFY_PROGRAM "/usr/local/lib/mgetty+sendfax/new_fax" +#define FAX_NOTIFY_PROGRAM PREFIX "/lib/mgetty+sendfax/new_fax" /* default minimum space required on spooling partition for receiving a FAX * (in KILObytes) */ #define MINFREESPACE 1024 + +#undef MGETTY_PID_FILE +#define MGETTY_PID_FILE "/var/run/mg-pid.%s" + + /* fax machines exchange so-called "non-standard-frames" that can be * used to identify what vendor and model is on the other end. * mgetty parses and prints this by default, because it can help @@@@ -601,3 +612,4 @@@@ */ #define FAX_NSF_PARSER +#define AUTO_PPP @ 1.10 log @Fix the VARBASE propagation to all utilities. Without this, we tried to log to /spool/fax/Faxlog. @ text @d1 1 a1 2 $NetBSD: patch-ai,v 1.9 2012/04/08 00:47:27 dholland Exp $ d9 3 a11 1 --- policy.h.orig 2012-04-08 00:19:33.000000000 +0000 d64 9 @ 1.9 log @Rework config patches somewhat so they might work on non-NetBSD. Attempt to honor VARBASE instead of blithely dropping stuff into /var; may be incomplete. Doing this right may require sorting out multiple /var trees as it shouldn't, at least by default, be working dialer locks in the pkgsrc VARBASE; however, it's not clear that those will always necessarily be in /var either. For now the package assumes they will be though. *** If I have broken this for you, please let me know ASAP. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.8 2012/04/08 00:04:12 dholland Exp $ d44 1 a44 1 @@@@ -147,7 +154,7 @@@@ d49 3 a51 1 +#define LOG_PATH VARBASE "/log/mgetty.%s" d55 1 a55 1 @@@@ -233,6 +240,7 @@@@ d63 1 a63 1 @@@@ -459,7 +467,8 @@@@ d69 1 a69 1 +#define FAX_LOG VARBASE "/spool/fax/Faxlog" d73 1 a73 1 @@@@ -552,20 +561,15 @@@@ d101 1 a101 1 @@@@ -586,13 +590,18 @@@@ d121 1 a121 1 @@@@ -601,3 +610,4 @@@@ @ 1.8 log @Don't warn in ~every file that DEVICE_GROUP is being defined on the command line. Eliminates a lot of build noise. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.7 2012/02/16 17:29:25 hans Exp $ d3 2 d6 3 a8 1 warnings by not defining it again when it's already set. d10 1 a10 5 - configure paths for pkgsrc. - ...? --- policy.h.orig 2012-04-07 23:59:02.000000000 +0000 d12 23 a34 1 @@@@ -114,7 +114,9 @@@@ d44 64 a107 1 @@@@ -593,6 +595,21 @@@@ a110 4 +#undef DEFAULT_LOGIN_PROGRAM +#define DEFAULT_LOGIN_PROGRAM "/usr/bin/login" + +#define CNDFILE "dialin.config" a114 5 +#undef FAX_LOG +#define FAX_LOG "/var/spool/fax/Faxlog" + +#undef MAILER +#define MAILER "/usr/sbin/sendmail" a115 1 +#undef DEVICE_GROUP d119 1 a119 1 @@@@ -601,3 +618,4 @@@@ @ 1.7 log @Fix build on SunOS. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.6 2009/10/02 19:21:59 is Exp $ d3 8 a10 1 --- policy.h.orig 2009-10-02 11:51:33.000000000 +0200 d12 11 a22 1 @@@@ -593,6 +593,21 @@@@ d44 1 a44 1 @@@@ -601,3 +616,4 @@@@ @ 1.6 log @Update mgetty to 1.1.36, at the same time patching faxspool to use mktemp(1) to avoid symlink vulnerabilities in tmp file/directory creation/removal (mitre.org CVE-2008-4936). Named 1.1.36nb1 to emphasize difference from upstream. Commit ok'd by agc@@. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 @@@@ -593,6 +593,22 @@@@ a23 1 +#define DEVICE_GROUP "wheel" d27 1 a27 1 @@@@ -601,3 +617,4 @@@@ @ 1.5 log @pkglint cleanup: Replace configure-script with a patch that does the same. Use SUBST framework instead of mv+sed. @ text @d3 1 a3 1 --- policy.h.orig 2007-03-01 17:06:20.000000000 +0000 d5 1 a5 1 @@@@ -620,3 +620,22 @@@@ a16 3 +#undef LOCK +#define LOCK "/var/spool/lock/LCK..%s" + d25 8 @ 1.4 log @* Remove unnecessary INSTALL and DEINSTALL scripts and replace with an appropriate OWN_DIRS_PERMS definition. * Simplify the patches by overriding the value of CONFDIR at build time and at installation time. * Honor PKGINFODIR and PKGMANDIR. Bump PKGREVISION to 4 due to INSTALL script changes. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.3 2005/03/07 11:29:28 wiz Exp $ d3 5 a7 5 --- fax/Makefile.orig 2003-10-09 14:38:49.000000000 +0200 +++ fax/Makefile @@@@ -12,6 +12,9 @@@@ FAX_SCRIPTS=faxspool faxrunq faxq faxrm zigzag: cd .. ; $(MAKE) subdirs d9 2 a10 2 +CONFDIR=${MGETTY_CONFDIR} +CONF_EXAMPLES_DIR=${PREFIX}/share/examples/mgetty+sendfax d12 16 a27 20 all: $(FAX_SCRIPTS) faxrunqd faxheader faxq-helper faxspool: faxspool.in ../sedscript @@@@ -68,8 +71,8 @@@@ install: all # $(INSTALL) -m 644 cour25.pbm $(LIBDIR) $(INSTALL) -m 644 cour25n.pbm $(LIBDIR) - -test -f $(CONFDIR)/faxheader || \ - $(INSTALL) -m 644 faxheader $(CONFDIR) + -test -f $(CONF_EXAMPLES_DIR)/faxheader || \ + $(INSTALL) -m 644 faxheader $(CONF_EXAMPLES_DIR) # # /etc/magic # @@@@ -82,4 +85,4 @@@@ install: all # # faxspool.rules sample file # - $(INSTALL) -m 644 faxspool.rules $(CONFDIR)/faxspool.rules.sample + $(INSTALL) -m 644 faxspool.rules $(CONF_EXAMPLES_DIR)/faxspool.rules.sample @ 1.3 log @Regen some patches to get correct line number offsets; some patch(1) care. @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.2 2003/09/20 16:39:38 fredb Exp $ @ 1.2 log @Update to 1.1.30, submitted by Stephane Fortier in PR pkg/22867. "ChangeLog" since 1.1.28 w/dates and blank lines elided: * release 1.1.30 * voice/vgetty/answer.c, voice/include/default.c: integrate Paul Fox' pre_message and beep_sound patches * voice/libvoice/detect.c: recognize MultiTech MT3334ZDXV * faxhng.c: add some result codes for the i4l DIVA driver * voice/libvoice/IS_101.c: fix DTMF events for the unshielded case * voice/vgetty/answer.c: accept arbitrary ring types, not only 0..6 * ring.c: map DRON/DROF return codes to binary word, use result as distinctive RING number * frontends/www/README: add user authentication example * voice/libvoice/V253modem.c: repair messed-up 16 bit PCM patch * release 1.1.29 * voice/libvoice/detect.c: insert delay before sending ATE0 to modem (timing issue - modem might not have sent the full \r\n sequence from the last "OK" yet when the new AT comes in) * doc/*.[158]in: bring man pages up to date * tools/ltest.c, tools/mid.c: adapt to new lprintf() prototype * mgetty.h, logfile.c: adapt to use and "..." function declaration (unless USE_VARARGS is set, which is needed for NeXT platforms). Karsten Keil . * Makefile: relax permissions on sendfax and faxrunq.config install - must be readable/executeable by user "fax" now * doc/faxrunqd.8in: document "-u", minor updates * fax/faxrunqd.in, fax/faxspool.in, fax/faxrunq.in: revert Aug 6, 200 change - put faxqueue_done back into $FAX_SPOOL_OUT/ (faxrunq/faxrunqd have no access rights to $VARRUNDIR/ anymore, and $FAX_SPOOL_OUT is no longer world writeable anyway) * fax/faxq.in: change from .last_run to faxqueue_done * fax/faxrunqd.in: add "-u " switch (set uid to ) * fax/faxq-helper.c: finalize new fax queue handling using helper process (suid fax) and a fax queue that is no longer world-readable (open issue since 1994 :) ) * faxrecp.c: implement experimental teergrubing mode (signal "page bad, please retransmit" at the end of each page - or just hang up hard on caller). Activared with "modem-quirks 0x100" or "0x200", respectively. * voice/libvoice/V253Modem.c: add 16 bit linear PCM support (patch coming from Peter Bruley) * voice/pvftools/pvftormd.c, rmdtopvf.c: add 16 bit linear PCM * rework faxq-helper concept (suid root -> suid fax) * fax/faxq.in: adap "-r" to use faxq-helper * fax/faxspool.in: adapt to use faxq-helper * fax/faxrm.in: adapt to use faxq-helper * Makefile: create FAX_SPOOL_OUT with mode 755 and owner FAX_OUT_USER * Makefile: add FAX_OUT_USER definition, pass lots of variables to fax/Makefile (for faxq-helper) * README.1st: add instructions about FAX_OUT_USER setup * doc/mgetty.texi-in add instructions about FAX_OUT_USER setup * fax/faxrunqd.in: fix symlink / file overwrite race in JOB files. Pointed out by Jablonovsky Alexander * doc/faxrunq.8in: point out insecurity in symlink handling * mgetty.h: Intel 64bit platforms (__x86_64__) needs PTR_IS_LONG * voice/libvoice/IS_101.c: implement DLE shielding for long DTMF tones for V.253 (initially by Lee Howard ) * mgetty.c: throw out DIST_RING #define - not used anymore * ring.c: make sure action strings (CONNECT) are only recognized at the beginning if a line, not in the middle (Paul Fox, pgf@@foxharp.boston.ma.us, CALLER NAME = CONNECTICUT). * cnd.c: replace non-printable characters and quotes in caller ID or caller name strings with ' ' - safeguard for passing them to shell later on. * doc/mgetty.texi-in: add stuff about recent multitech modems, superfine+v.34 fax, and rework chapter about common problems * faxlib.c: fix ugliness with USR modems reporting remote fax ID as " 12345" -> skip leading '"' and all whitespace * cnd.c: possible buffer overrun via CallName (found by "A. Guru" ) * fax/faxrunqd: fix priority vs. write combining bug * login.c: check for close-on-exec bit on FD 0 (FreeBSD 4.1 bug) * login.c: export Caller Name as environment variable $CALLER_NAME * login.c: make message about bad permissions even more clear @ text @d1 1 a1 1 $NetBSD: patch-ai,v 1.1 2001/06/21 17:02:24 fredb Exp $ d3 1 a3 1 --- fax/Makefile.orig d5 1 a5 1 @@@@ -12,6 +12,9 @@@@ d26 1 a26 1 @@@@ -67,4 +70,4 @@@@ @ 1.1 log @Fix mgetty package to not delete its config files on pkg_delete (next time! -- save them by hand if you need them for this upgrade), add a package hook to change ${CONFDIR}, where the binaries look for their configuration files, and update to 1.1.26. Many bug fixes and improved compatibility with various modems. The following were culled from the extensive ChangeLog file's for being conceivably of general interest. * login.c: export current tty as $DEVICE to shell * dialin.config: added V253 codes for OUT_OF_AREA and PRIVATE. * getdisk.c: fix overflow on file systems with > 2G (2^31 bytes) free * getdisk.c: default MINFREESPACE from policy.h was interpreted as *bytes*, not as *kbytes*. Which kind of defeats the purpose of checking for "enough disk space". Fixed, work with kbytes now. * faxrecp.c: check access rights first, space second (this will give clearer log messages for non-existing directories) * faxrecp.c: change fax page writing to open( O_EXCL|O_CREAT ) * locks.c: use mkstemp() to create tmp file, if available, open( O_EXCL|O_CREAT ) otherwise. and for vgetty... * Fixed buffer overflow in vm and vgetty, submitted by Georg Kirschbaum, . Impact would not have been very big since only DTMFs are under control of the user. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- fax/Makefile.orig Sat Jul 24 16:27:24 1999 d5 3 a7 3 @@@@ -9,6 +9,9 @@@@ FAX_SCRIPTS=faxspool faxrunq faxq faxrm d12 1 a12 1 all: $(FAX_SCRIPTS) faxrunqd faxheader d15 1 a15 1 @@@@ -53,8 +56,8 @@@@ @