Revision tags: release/6.2.0_cvs, release/6.2.0, release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
2c9fd5f2 |
| 01-Mar-2006 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
- Reduce needless DNS query by lookup only appropriate address family. [1] - Specify appropriate hints to getaddrinfo(3). [1] - Obtain address family from peername in inet mode.
Submitted by: Rost
- Reduce needless DNS query by lookup only appropriate address family. [1] - Specify appropriate hints to getaddrinfo(3). [1] - Obtain address family from peername in inet mode.
Submitted by: Rostislav Krasny <rosti.bsd__at__gmail.com> [1] Tested by: yar, Rostislav Krasny <rosti.bsd__at__gmail.com> MFC after: 1 week
show more ...
|
#
a599a64a |
| 21-Jan-2006 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
In the daemon code, check for and report possible errors from accept(2) and fork(2). Also close all unneeded fds in the child process, namely listening sockets for all address families and the fd in
In the daemon code, check for and report possible errors from accept(2) and fork(2). Also close all unneeded fds in the child process, namely listening sockets for all address families and the fd initially obtained from accept(2). (The main ftpd code operates on stdin/stdout anyway as it has been designed for running from inetd.)
MFC after: 5 days
show more ...
|
#
8eb0508f |
| 21-Jan-2006 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
The daemon's child shouldn't go on with the for loop over ctl_sock's -- it is solely the parent daemon's job. So just break out of the loop in the child.
MFC after: 5 days
|
#
125b9635 |
| 21-Jan-2006 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Use pidfile(3) provided by libutil to manage the deamon's pid file.
By default, create a pid file at the standard location, /var/run/ftpd.pid, in accord with the expected behavior of a stock system
Use pidfile(3) provided by libutil to manage the deamon's pid file.
By default, create a pid file at the standard location, /var/run/ftpd.pid, in accord with the expected behavior of a stock system daemon.
MFC after: 5 days
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0 |
|
#
f9036ce6 |
| 16-Feb-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Add some consistency checks to the signal-related code.
MFC: along with rev. 1.202
|
#
91ae7779 |
| 16-Feb-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
A call to maskurg() makes sense only when a transfer is under way, the function will emit an annoying log message otherwise.
Reported by: kris MFC: along with rev. 1.202
|
#
78e3eed0 |
| 14-Feb-2005 |
Stefan Farfeleder <stefanf@FreeBSD.org> |
Fix most cases where the address of an int is passed to a function expecting a socklen_t * argument.
|
Revision tags: release/4.11.0_cvs, release/4.11.0 |
|
#
220223fd |
| 19-Jan-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Respect the `logging' flag.
Pointed out by: Nick Leuta MFC after: 3 days
|
#
4cd51076 |
| 19-Jan-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Improve handling SIGURG and OOB commands on the control channel.
The major change is to process STAT sent as an OOB command w/o breaking the current data transfer. As a side effect, this gives bett
Improve handling SIGURG and OOB commands on the control channel.
The major change is to process STAT sent as an OOB command w/o breaking the current data transfer. As a side effect, this gives better error checking in the code performing data transfers.
A lesser, but in no way cosmetic, change is using the flag `recvurg' in the only signal-safe way that has been blessed by SUSv3. The other flag, `transflag,' becomes private to the SIGURG machinery, serves debugging purposes only, and may be dropped in the future.
The `byte_count' global variable is now accounting bytes actually transferred over the network. This can give status messages looking strange, like "X of Y bytes transferred," where X > Y, but that has more sense than trying to compensate for combinations of data formats on the server and client when transferring ASCII type data. BTW, getting the size of a file in advance is unreliable for a number of reasons in the first place. See question 18.8 of the Infrequently Asked Questions in comp.lang.c for details.
PR: bin/52072 Tested by: Nick Leuta (earlier versions), a stress-testing tool (final) MFC after: 1 month
show more ...
|
#
1850cfa1 |
| 10-Jan-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Replace err(3) calls when in daemon mode by syslog(3), too. A daemon has no stderr to send its complains to.
Pointed out by: Nick Leuta MFC after: 1 week
|
#
bcd26184 |
| 16-Dec-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Do a small style(9) fix before I'm hacking the code itself.
|
#
8efc8b18 |
| 16-Dec-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
free(3) is void already.
|
#
6c98f401 |
| 12-Dec-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Never emit a message to stderr: use syslog instead. When in inetd mode, this prevents bogus messages from appearing on the control channel. When running as a daemon, we shouldn't write to the termin
Never emit a message to stderr: use syslog instead. When in inetd mode, this prevents bogus messages from appearing on the control channel. When running as a daemon, we shouldn't write to the terminal we used to have at all.
PR: bin/74823 MFC after: 1 week
show more ...
|
#
ebd83647 |
| 22-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
When looking for a virtual host to handle the connection, stop the search on the first match for efficiency.
Submitted by: Nick Leuta
|
#
4cbc4ad6 |
| 22-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Calling pam_chauthtok() isn't really needed since an FTP user has no chance to change password anyway.
Submitted by: Nick Leuta
|
#
e897216f |
| 22-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Don't log the chroot dir on every command since it's constant for a session. Log it once at the beginning of the session instead. OTOH, log wd each time for the sake of better auditing and consisten
Don't log the chroot dir on every command since it's constant for a session. Log it once at the beginning of the session instead. OTOH, log wd each time for the sake of better auditing and consistent log format.
Proposed by: Nick Leuta <skynick -at- mail.sc.ru>
show more ...
|
#
7cdd3cb7 |
| 22-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Always log remote IP.
PR: bin/59773
|
#
04683b2c |
| 22-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Treat host name buffers consistently.
|
#
215a9f9d |
| 18-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Make chrootdir global and use it in log messages regarding restricted users.
MFC after: 2 weeks
|
#
2b7eb1c0 |
| 18-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Nitpicking on style(9) and whitespace.
Tested with: md5(1)
|
#
0c4b401f |
| 18-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Use __FBSDID.
|
#
405e2987 |
| 18-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Don't say, "file: permission denied," if the operation is disabled entirely.
|
#
02c97492 |
| 18-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Use uniform punctuation, capitalization, and language style in server messages wherever this doesn't contradict to a particular message format.
|
#
eb5b2bb3 |
| 18-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Apply __printflike() to the appendf() prototype so the compiler can detect format errors.
|
#
82c03024 |
| 18-Nov-2004 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Fix perror_reply() vs. reply() usage.
|