oftpd.git
12 years ago2007-02-06 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Tue, 6 Feb 2007 22:40:32 +0000 (22:40 +0000)]
2007-02-06  Marcus Brinkmann  <marcus@g10code.de>

* configure.in (AC_CHECK_HEADERS): Check for sys/sendfile.h.
* src/file_list.c (file_nlst): Remove unused variable HIDDEN.
* src/ftp_session.c [HAVE_SYS_SENDFILE_H]: Include
<sys/sendfile.h>.
(do_user, do_pass): Remove unused variable addr_port.
(do_eprt): Remove unused variable HOST_PORT.
(do_retr): Remove unused variable host_port.  Adjust format output
parameter for timespec members, cast these to the format type.
[!HAVE_FREEBSD_SENDFILE]: Do not define otherwise unused variable
AMT_SENT.
* src/ftp_listener.c (addr2string) [!INET6]: Do not define
variables ERROR and ADDR to suppress compiler warning.
(addr_to_string): Replace with prototype for addr2string.
* src/oftpd.c: Remove extra argument EXE_NAME in syslog
invocation.
(my_syslog_fd): Remove unused global variable.
* src/daemon_assert.c: Include <stdlib.h>.

13 years agoA couple of changes collected over the last year
Werner Koch [Thu, 9 Mar 2006 15:36:31 +0000 (15:36 +0000)]
A couple of changes collected over the last year

13 years ago(file_nlst, file_list): Fixed the paranoia test for
Werner Koch [Sat, 30 Apr 2005 14:28:26 +0000 (14:28 +0000)]
(file_nlst, file_list): Fixed the paranoia test for
overlong directories.

Ported patches from Shane Kerr's 0.3.7 release:

* configure.in: Disabled support for sendfile() on FreeBSD.  It
appears to me that there's a bug in the sendfile() user-level
library.  I would welcome advice from any FreeBSD developer
wishing to set me straight.

* src/ftp_session.c (do_size): Changed SIZE command to return
error for directories.
* src/file_list.c: #ifdef wrap GLOB_ABORTED for really old gcc
compilers (Slackware or older installations).
(skip_ls_options): Add code to skip command line options that are
intended for "ls".

15 years agoFix overflow in port command which led to an assertion failure.
Werner Koch [Wed, 31 Mar 2004 17:09:18 +0000 (17:09 +0000)]
Fix overflow in port command which led to an assertion failure.

15 years ago(connection_acceptor): Don't increase the
Werner Koch [Mon, 12 Jan 2004 08:05:31 +0000 (08:05 +0000)]
(connection_acceptor): Don't increase the
error counter for EMFILE conditions but a few seconds.

15 years ago(connection_acceptor): Don't increase the
Werner Koch [Mon, 12 Jan 2004 07:54:06 +0000 (07:54 +0000)]
(connection_acceptor): Don't increase the
error counter for EMFILE conditions.

15 years agoUpdated that file.
Werner Koch [Wed, 13 Aug 2003 12:14:18 +0000 (12:14 +0000)]
Updated that file.

15 years ago* src/oftpd.c (reopen_syslog_hack): Removed.
Werner Koch [Wed, 13 Aug 2003 11:58:11 +0000 (11:58 +0000)]
* src/oftpd.c (reopen_syslog_hack): Removed.
(init_syslog_hack): Removed.  That was a whole stupid thing by me
as I didn'd realized that we are running chroot and so the
/dev/log socket could not be reopened by libc.
(main): Print a warning if there is no /dev directory below the
chroot.

* src/file_list.c (file_nlst,file_list): Don't list "/dev".
* src/ftp_session.c (change_dir, do_retr)
(do_size, do_mdtm): Likewise.

15 years ago(reopen_syslog_hack): Just comparing teh fd is not
Werner Koch [Tue, 12 Aug 2003 07:48:30 +0000 (07:48 +0000)]
(reopen_syslog_hack): Just comparing teh fd is not
enough due to a race conditions.  So always check whether the
syslog fd is still a unix domain socket.

15 years agoLets keep our version of opftpd in the CVS
Werner Koch [Mon, 11 Aug 2003 13:14:51 +0000 (13:14 +0000)]
Lets keep our version of opftpd in the CVS