History log of /openbsd/libexec/ftpd/monitor.c (Results 1 – 25 of 31)
Revision Date Author Comments
# 5b133f3f 08-Mar-2023 guenther <guenther@openbsd.org>

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


# b7041c07 24-Oct-2021 deraadt <deraadt@openbsd.org>

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which mig

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert

show more ...


# 18a2fcc3 31-May-2021 jan <jan@openbsd.org>

Convert K&R function definitions to modern C.

OK naddy@, millert@


# 330fc432 20-May-2021 jan <jan@openbsd.org>

Removes the useless FILE* parameter of get_line().
While here fix minor whitespace mistake.

"looks fine to me" chris@


# fcba609b 15-May-2021 jan <jan@openbsd.org>

Add pledge for ftpd's user processes.

OK tobhe@


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# e4c28d58 17-Apr-2017 deraadt <deraadt@openbsd.org>

freezero() can be used here


# 22e57725 25-Apr-2016 deraadt <deraadt@openbsd.org>

prefer setres{u,g}id() rather than manipulating both real and effective
ids, it clarifies these are full revocation situations.
ok millert


# 6272de94 16-Nov-2015 tedu <tedu@openbsd.org>

don't need to ifdef setproctitle


# 4239b822 06-Feb-2015 millert <millert@openbsd.org>

SIZE_MAX is standard, we should be using it in preference to the
obsolete SIZE_T_MAX. OK miod@ beck@


# 8fbd7fcb 25-Aug-2014 doug <doug@openbsd.org>

Delete secret or secret-derived data with explicit_bzero.

concept ok deraadt@
diff looks ok tedu@


# f0b01e45 04-Jun-2009 sthen <sthen@openbsd.org>

...and now try again with a commit from the right tree. doh!

ftp uses its own ugly "sockunion" to hold addresses, but with CMD_BIND
the monitor treats it as if it were a sockaddr. this is fine for v

...and now try again with a commit from the right tree. doh!

ftp uses its own ugly "sockunion" to hold addresses, but with CMD_BIND
the monitor treats it as if it were a sockaddr. this is fine for v4 but
fails for v6, so active connections break. problem reported and diff
tested by Maurice Janssen. looks sensible to deraadt@.

show more ...


# 66dcebad 04-Jun-2009 sthen <sthen@openbsd.org>

ftp uses its own ugly "sockunion" to hold addresses, but with CMD_BIND
the monitor treats it as if it were a sockaddr. this is fine for v4 but
fails for v6, so active connections break. problem repor

ftp uses its own ugly "sockunion" to hold addresses, but with CMD_BIND
the monitor treats it as if it were a sockaddr. this is fine for v4 but
fails for v6, so active connections break. problem reported and diff
tested by Maurice Janssen. looks sensible to deraadt@.

show more ...


# 92f68775 30-Jun-2008 ragge <ragge@openbsd.org>

Include file order must be "monitor.h" before "extern.h" otherwise enum
auth_ret is referenced before it is declared, which is not allowed by C99.

Ok krw@, millert@, gilles@


# a0e1c276 05-Apr-2007 moritz <moritz@openbsd.org>

Remove lint comment, which does not apply anymore.


# ceb6fd83 26-Mar-2007 moritz <moritz@openbsd.org>

Do not log when the slave gets killed because of read()
returning 0. This is normal behavior and should not spam
the logs. Noticed by henning@

OK henning@ millert@


# 76d1ef43 01-Mar-2007 otto <otto@openbsd.org>

- use proper log facility and priority in the slave sig handlers
- if the monitor decides to kill the slave, log that
ok millert@ moritz@


# 95cc8c4a 21-Apr-2006 deraadt <deraadt@openbsd.org>

lint cleanup; ok ray moritz dhill


# 7fdde7a3 14-Mar-2006 moritz <moritz@openbsd.org>

Allow anonymous logins without a password, which was broken
by the last commit. Noticed by Armin Wolfermann. ok henning@


# a8ad9a0a 20-Jan-2006 moritz <moritz@openbsd.org>

fix integer overflows. ok millert@


# efa4b9ef 14-Jul-2005 moritz <moritz@openbsd.org>

let root create the data socket. fixes PR 4287.
ok millert@ henning@


# 821c3d91 24-May-2005 moritz <moritz@openbsd.org>

readd endpwent()


# 802797a5 24-May-2005 moritz <moritz@openbsd.org>

no need for endpwent()


# 038ca976 26-Feb-2005 moritz <moritz@openbsd.org>

fix {send,recv}data so they don't add -1 to pos in the
EINTR/EAGAIN case as found by otto@.
also make them more quiet as requested by deraadt@.

ok millert@ otto@ henning@


# 5ab9ebd3 20-Dec-2004 moritz <moritz@openbsd.org>

change mail address

ok henning@


12