| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
what using snprintf() achieves. It was also being used incorrectly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-O, which limits the impact of the write-only restriction to guest
users.
*) The existing manual page's SYNOPSIS and option listing in the
DESCRIPTION are already horribly disordered. No attempt has been
made to fix this.
*) The existing source's getopt() optstring and option handling switch
are already horribly disordered. No attempt has been made to fix
this.
Discussed with: nik, -audit
|
|
|
|
|
|
|
|
|
|
|
| |
long -> time_t
%ld -> %qd
fseek -> fseeko
NOTE: that fseek not works for >long offsets per POSIX:
[EOVERFLOW] For fseek( ), the resulting file offset would be a value which
cannot be represented correctly in an object of type long.
|
|
|
|
|
|
|
|
|
| |
preventing anyone from downloading files. In conjunction with -A, and some
appropriate file permissions, this lets you create an anonymous FTP drop
box for people to upload files to.
The more obvious "-w" flag is already taken by NetBSD's ftpd. "-o" was
available as an option letter in all three BSDs.
|
|
|
|
|
|
|
|
|
|
| |
with NetBSD and OpenBSD. glob(3) will now return GLOB_NOSPACE with
errno set to 0 instead of GLOB_LIMIT when we match more than `gl_matchc'
patterns. GLOB_MAXPATH has been left as an alias of GLOB_LIMIT to
maintain backwards compatibility.
Reviewed by: sheldonh, assar
Obtained from: NetBSD/OpenBSD
|
|
|
|
|
|
|
| |
with the conversation function and challenges which needs to be
revisited, so in the interim a hack is introduced to provide
an OPIE challenge (which is random if OPIE does not apply)
at all non-anonymnous logins.
|
|
|
|
| |
the latter is not required for ftpd to compile.
|
|
|
|
|
| |
in conflict with library values of the same name. This allows static
linking.
|
|
|
|
|
|
|
| |
The PAM_FAIL_CHECK and PAM_END macros in su.c came from the util-linux
package's PAM patches to the BSD login.c
Submitted by: "David J. MacKenzie" <djm@web.us.uu.net>
|
| |
|
|
|
|
|
|
| |
of the transferred byte count. MFC candidate.
PR: bin/25699
|
| |
|
|
|
|
|
|
|
|
|
| |
into confusion.
Add option -r to make ftpd support only read-only operations.
Submitted by: Flemming (F3) Jacobsen <fj@batmule.dk>
Reviewed by: phk
|
| |
|
|
|
|
| |
were broken because the code failed to set PAM_RHOST.
|
|
|
|
| |
<time.h>).
|
|
|
|
|
|
|
| |
instead.
PR: 20675
Submitted by: Vladimir B Grebenschikov <vova@express.ru>
|
|
|
|
| |
standalone -D mode when neither -4 nor -6 is specified.
|
|
|
|
|
|
|
|
|
|
|
|
| |
has set pwok to a non-zero value.
Previously, the fact that skey.access(5) allowed UNIX passwords for
this connection attempt was ignored, even in the NOPAM case.
This only addresses the NOPAM case; when libpam is used, the problem
will persist.
PR: 20333
|
|
|
|
|
|
|
| |
duplicated host entries in /etc/ftphosts not to be folded. Make sure
we exit the loop on a match.
PR: bin/19390
|
|
|
|
|
| |
2. Add portrange restriction code (for both v4 and v6) to the EPSV
processing stuff.
|
|
|
|
|
|
|
| |
-ftpd need to know each of AF_INET and AF_INET6 addr for hosts specified in
/etc/ftphosts.
Approved by: jkh
|
|
|
|
|
|
|
|
|
| |
When hostname is not set, ftpd core dumps, because there is no
NULL check for freeing name resolving information for its own
hostname.
So the check is added.
Approved by: jkh
|
|
|
|
|
|
|
| |
ftp, telnet, ftpd, faithd
also telnet related sync with crypto, secure, kerberosIV
Obtained from: KAME project
|
| |
|
|
|
|
|
|
|
|
| |
a file transfer, the command was mishandled on every other receipt of the
command.
PR: 13261
Submitted by: Ian Lepore <ian@plutotech.com>
|
| |
|
|
|
|
|
| |
really dislikes this, we could add a switch to disable it at runtime and
check in popen.c.
|
|
|
|
|
|
|
|
|
|
| |
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int (and also remove a useless register
modifier).
Reviewed by: obrien and chuckr
|
|
|
|
|
|
|
|
|
|
| |
friends are terminated and allow for a maximum
host name length of MAXHOSTNAMELEN - 1.
Put parenthesis around sizeof args.
Make some variables static.
Fix telnetd -u (broken by my last commit)
Prompted by: bde
|
|
|
|
|
|
| |
gethostbyaddr() & gethostbyname().
Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
|
|
|
|
|
|
| |
PR: bin/7943 bin/8293
Submitted by: Bill Fenner <fenner@parc.xerox.com>
Approved by: jkh
|
|
|
|
| |
time() requires a time_t pointer, not a long.
|
|
|
|
|
| |
PR: 6682
Submitted by: Max Euston <meuston@jmrodgers.com>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
any case.
It makes no difference for anon account (since chroot already makes it GMT),
but if you do mirror with special non-anon login, in old variant
your mirror will be wholy retransmitted twice in the year due to
time zone changes (/etc/localtime plays bad role here)
|
| |
|
| |
|
|
|
|
|
| |
Minor style fix (strcpy(foo,"") -> *foo = '\0')
Obtained from: OpenBSD(?)
|
| |
|
|
|
|
| |
version ftpd_logwtmp().
|
|
|
|
|
| |
PR: 4135
Based on submitted patch by: blank@fox.uni-trier.de
|
| |
|
| |
|
|
|
|
| |
definition of a system's virtual hosts.
|
|
|
|
| |
and allow chroot access to entire groups.
|
|
|
|
|
|
|
|
|
|
|
| |
modules from src/bin/ls, and handling exec(_PATH_LS,..) as a
special case, very useful in an environment where many users
are given chroot access. "~/etc/{s}pwd.db" files are still
needed if uid/gid->user/group translation is desired.
To enable this it must be compiled with the make variable
FTP_INTERNAL_LS defined, either in /etc/make.conf or the
environment.
|
| |
|
|
|
|
| |
posix standard on the topic.
|