| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
From Jan Stary, thanks.
OK martijn
|
|
|
|
|
| |
Fixes a "vfprintf %s NULL" warning in ftpd.
OK deraadt@ tb@
|
|
|
|
|
|
| |
Also avoid command option injection for ls(1).
OK martijn@
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
its statically linked ls_main for some time now.
from Jan Klemkow
ok deraadt
|
|
|
|
|
| |
No functional change.
suggested by tb@; from Jan Klemkow
|
|
|
|
|
| |
to avoid comparison of integers of different signs.
from Jan Klemkow; OK tb@
|
|
|
|
|
|
|
|
|
| |
While a few commands (such as HELP and NOOP) are allowed in between
USER and PASS, most of the others are not. However if such command
is issued, ftpd should abort the command evaluation early and reply
with "530 Please login with USER and PASS."
From form@, with input from deraadt@ and OK millert@
|
|
|
|
| |
[Not using freezero() in yacc files yet]
|
| |
|
|
|
|
|
|
|
| |
on = 65536;
if (setsockopt(... &on ...)
is slightly misleading.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We don't consider support for those addreses as desirable, so let's not
give a bad example by keeping application code to handle them. This is
dead code on OpenBSD anyway since we do not support IPv4-mapped stuff.
But let's keep the check to log and warn the admin if the code gets
ported elsewhere. Porters of this code should ensure that IPv6 sockets
can't see IPv4-mapped addresses by using the IPV6_V6ONLY sockopt.
Discussed with & ok tedu@
For a rationale, see https://tools.ietf.org/html/draft-itojun-v6ops-v4mapped-harmful-02
|
|
|
|
|
| |
retain disabled ip4in6 code until its future is decided.
ok deraadt jca
|
| |
|
|
|
|
|
|
| |
the multiplication to avoid truncation/overflow
ok krw@
|
|
|
|
|
|
| |
Delete pointless casts to off_t, void*, and uid_t
ok krw@
|
|
|
|
| |
ok millert@
|
|
|
|
|
|
|
| |
Prompted by and ok millert@
(tcpdump and libpcap left untouched, the #ifdef force is too strong with
those)
|
|
|
|
|
| |
ids, it clarifies these are full revocation situations.
ok millert
|
|
|
|
|
|
| |
from fritjof ! alokat.org
ok ratchov@ natano@
|
|
|
|
| |
Feedback millert@ kettenis@
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
ok jca sthen
|
|
|
|
|
|
| |
Move the one useful bit of information contained in the file ("one
user name per line") to the ftpd(8) manual page where it belongs.
OK deraadt@ sthen@
|
|
|
|
|
|
| |
array. this implies we can't use a function pointer for close, but also
means we get to repair some abuse of the comma operator.
ok miod
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
What's worse, the tzfile.h that gets installed is over 20 years old
and doesn't match the real tzfile.h in libc/time. This makes the
tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE
define has been moved to time.h temporarily until its usage is
replaced by 1900 in the tree. Actual removal of tzfile.h is pending
a ports build. Based on a diff from deraadt@
|
|
|
|
| |
obsolete SIZE_T_MAX. OK miod@ beck@
|
|
|
|
|
|
| |
golly gee, ftpd can handle that itself due to the glorious old practice
of #ifndef #define. Remove that junk.
ok guenther
|
|
|
|
|
|
|
|
|
| |
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
| |
|
|
|
|
| |
ok millert@
|
|
|
|
|
| |
concept ok deraadt@
diff looks ok tedu@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
number (idea borrowed from pure-ftpd). Enabled by default with minimum uid
1000 to prevent access to admin accounts. tweak/OK millert@, OK deraadt@,
gsoares@ and aja@ like it too.
|
| |
|
|
|
|
|
| |
syslog with mmap failures. Noticed by and ok henning@, "looks right"
deraadt@
|
|
|
|
| |
ok okan kettenis
|