oftpd.git
6 years agoDocumentation and build changes for using GIT master
Werner Koch [Tue, 13 Sep 2011 12:53:41 +0000 (14:53 +0200)]
Documentation and build changes for using GIT

OFTPD is now maintained in a GIT repository.

7 years agoFix crash under Linux NPTL
Werner Koch [Fri, 25 Jun 2010 13:51:50 +0000 (13:51 +0000)]
Fix crash under Linux NPTL

10 years ago2007-04-05 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 5 Apr 2007 16:22:14 +0000 (16:22 +0000)]
2007-04-05  Marcus Brinkmann  <marcus@g10code.de>

* src/ftp_session.c (do_retr, open_connection, send_readme):
Add dummy block between jump label and pthread_cleanup_pop() macro.

* oftpd.startup (ARGS): Add $OPTIONS.
* src/oftpd.h (debug_flags): Declare global variable.
(DEBUG_NONE, DEBUG_XFER, DEBUG_CMDS): New macros.
* src/oftpd.c (debug_flags): New global variable.
(main): Support new -d option.
* src/ftp_session.c (ftp_session_run): Only log if DEBUG_CMDS flag
is set.
(reply): Likewise.
(do_retr): Log xfer in WU-FTPD format.

10 years agoAnother patch for ill-behaving firewalls.
Werner Koch [Mon, 26 Mar 2007 17:38:04 +0000 (17:38 +0000)]
Another patch for ill-behaving firewalls.

10 years agoTry to use just one write for the line and the CRLF.
Werner Koch [Fri, 23 Mar 2007 18:05:54 +0000 (18:05 +0000)]
Try to use just one write for the line and the CRLF.

10 years agoChanged another VERSION
Werner Koch [Thu, 8 Feb 2007 19:12:33 +0000 (19:12 +0000)]
Changed another VERSION

10 years agoDo not use the obsolete VERSION and PACKAGE
Werner Koch [Thu, 8 Feb 2007 19:01:44 +0000 (19:01 +0000)]
Do not use the obsolete VERSION and PACKAGE

10 years agoUpdated build system to configure.ac style
Werner Koch [Thu, 8 Feb 2007 18:53:42 +0000 (18:53 +0000)]
Updated build system to configure.ac style

10 years ago2007-02-08 Marcus Brinkmann <marcus@g10code.de>
Marcus Brinkmann [Thu, 8 Feb 2007 00:29:42 +0000 (00:29 +0000)]
2007-02-08  Marcus Brinkmann  <marcus@g10code.de>

* src/telnet_session.c: Include <pthread.h>.
(process_data): Enable cancellation.
* src/ftp_session.c (netscape_hack): Likewise.
(send_readme, do_list, do_nlst): Use cancellation cleanup handler.
(set_pasv): Release socket_fd before invoking reply() in case of
failure.
(open_connection): Likewise.
(do_pasv): Close outstanding passive port before invoking reply().
(do_lpsv): Likewise.
(do_epsv): Likewise.
* src/file_list.c: Always include <pthread.h>.
(fdprintf): Bump buffer size to PATH_MAX + 3.  Enable cancellation
while writing.
* src/ftp_listener.c (connection_handler): Do not use asynchronous
cancellation.  Disable cancellation until further notice.

10 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>.

11 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

12 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".

13 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.

14 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.

14 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.

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

14 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.

14 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.

14 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