NetBSD/usr.bin/ftp
lukem 123e840f8b ftp.c: improve signal handler restoration
Only invoke the old signal handler if it's a real signal handler
and not SIG_IGN, SIG_DFL, SIG_HOLD, or SIG_ERR, using new static
function issighandler().
Avoids an intermittent race condition with a null pointer
dereference via (*SIG_DFL)().
Bug class reported by Joyu Liao from Juniper Networks.

Use SIG_ERR instead of NULL as the indicator that a signal handler
hasn't been changed, so that SIG_DFL (equivalent to NULL)
will be restored.
2020-07-11 02:19:31 +00:00
..
cmds.c Try to avoid a (bogus) fatal warning from clang. 2019-02-06 07:56:42 +00:00
cmdtab.c
complete.c PR/53916: Rob Gill: remove redundant assignment to matchlen. 2019-01-28 12:04:16 +00:00
domacro.c - add or adjust /* FALLTHROUGH */ where appropriate 2019-02-03 03:19:25 +00:00
extern.h trim down error checking if we are small. 2019-06-22 23:40:53 +00:00
fetch.c fetch_url: improve signal handler restoration 2020-07-11 00:29:38 +00:00
ftp_var.h Issue PWD commands to the server only when we actually 2017-11-20 21:11:36 +00:00
ftp.1 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
ftp.c ftp.c: improve signal handler restoration 2020-07-11 02:19:31 +00:00
main.c - add justquit() that always exits. use it to avoid unreachable code. 2019-02-04 04:09:13 +00:00
Makefile Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
progressbar.c make this compile again with -DNO_PROGRESS 2019-06-22 23:40:33 +00:00
progressbar.h
ruserpass.c
ssl.c redo the connection waiting handling to make it more clear. 2019-04-07 00:44:54 +00:00
ssl.h Make fetch_read() return size_t like fread() does. It is bogus to 2019-04-04 00:36:09 +00:00
util.c ftp: exit if lostpeer invoked by a signal 2020-06-08 01:33:27 +00:00
version.h ftp.c: improve signal handler restoration 2020-07-11 02:19:31 +00:00