summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
Commit message (Collapse)AuthorAgeFilesLines
* Teach REST how to restart a file transfer after 2^31 bytes: now yylex()maxim2002-03-141-25/+33
| | | | | | | | | | | | returns off_t in yylval.u.o. REST is the only user of yylval.u.o at the moment. NB: seems lukemftpd has the same bug. PR: misc/28629 Reviewed by: ru Approved by: ru MFC after: 1 month
* Remove duplicated yacc nonterminals declarations, sort includes.maxim2002-03-111-4/+3
| | | | | | | | No functional changes from rev. 1.31. Reviewed by: ru Approved by: ru MFC after: 1 week
* Put the last added source file in proper order.obrien2002-02-271-1/+1
| | | | (and dcc the committer a dictionary)
* Rewrite the part of the conversation function that allocates the reply array;des2002-02-251-2/+5
| | | | | | it was inelegant and neglected to check the return value from malloc(3). Sponsored by: DARPA, NAI Labs
* Fix infinite loop around sendfile(2) after sending >4GB file.maxim2002-02-131-5/+3
| | | | | | | | PR: bin/33770 Submitted by: Vladislav Shabanov <vs@rambler-co.ru> Reviewed by: ru Approved by: ru MFC after: 1 month
* Lock down with WFORMAT?=1, with overrides in the subdirectories whichkris2002-02-041-0/+1
| | | | are not yet warning-clean. Tested on i386 and alpha.
* Silence some FORMAT_AUDIT warnings (one left)kris2002-02-041-2/+2
|
* o Eliminate __Pimp2002-02-034-217/+123
| | | | | | o Use new-style function definitions o remove some !__STDC__ code o eliminate register
* Remove the setjmp/longjmp stuff completely. Use signalyar2002-01-282-44/+94
| | | | | | | | | | | | handlers to set flags only (with exception for sigquit(), which still seems to call some non-reentrant functions on its way to _exit(2).) That must eliminate the possibility of catching SIGSEGV from following non-reentrant paths from signal handlers. PR: bin/32740 bin/33846 Submitted by: Maxim Konovalov <maxim@macomnet.ru> Obtained from: OpenBSD
* Log wtmp according to an address family properly.ume2002-01-283-25/+16
| | | | | | Reported by: matusita Reviewed by: matusita MFC after: 1 week
* Remove my workaround fallback since PAM now do it properly.ache2002-01-211-10/+9
|
* Really back out ache's commits. These files are now precisely as they weredes2002-01-191-9/+10
| | | | twentyfour hours ago, except for RCS ids.
* Back out PAM_CRED_ERR additionache2002-01-191-1/+0
|
* Add PAM_CRED_ERR as valid failure caseache2002-01-191-0/+1
|
* Call opieunlock() only if we skip opieverify() partache2002-01-191-2/+3
|
* Remove conditional 'pwok' fallback for PAM which nowache2002-01-191-9/+7
| | | | | | | is implemented in pam_opie module For non-PAM variant rewrite empty password checking code to do the right thing and not disallow empty passwords in all cases.
* Be more careful about freeing memory after parsing commands.dwmalone2002-01-051-7/+19
| | | | | | | | Hiroyuki YAMAMORI gave a patch for the EPRT command in the PR below. Problems with the rest of the patch are my fault. PR: 33268 Reviewed by: iedowse, sheldonh
* Fix OPIE authache2002-01-011-15/+30
|
* Fixed missing DPADD in previous commit. Fixed most style bugs related tobde2001-12-291-2/+3
| | | | DPADD and LDADD.
* Link with libm to take advantage of the -h flag to ls.joe2001-12-291-0/+1
| | | | Submitted by: Mike Makonnen <mike_makonnen@yahoo.com>
* Add lomac.c.green2001-11-271-1/+1
| | | | Found by: ken
* Eliminate another instance of the old and well-knownyar2001-11-191-7/+25
| | | | | | | | | DoS bug that the select(2)/accept(2) pair is called on a socket that is in the blocking I/O mode. The bug is triggered if a selected connection dies before the accept(2) leading to the accept(2) blocking virtually forever. MFC after: 1 week
* Don't let a user name in ftpd's proctitleyar2001-10-121-1/+1
| | | | | | | be mistaken for a status message. PR: misc/25217 MFC after: 7 days
* Be consistent about indent at least within one block of code.yar2001-10-121-5/+5
|
* mdoc(7) police: markup nits.ru2001-10-011-1/+3
|
* 1) Use OPIE response only when OPIE keys really usedache2001-09-291-2/+5
| | | | 2) Use commonly used OPIE response form instead of self-made one
* Improve the description on how to construct ~ftp/pub. Specifically,mikeh2001-09-251-5/+7
| | | | | | | | don't instruct users to set the directory mode 777. PR: 30690 Obtained from: NetBSD (with modification) MFC after: 2 weeks
* Remove a field width specifier that's not doing anything more thanmikeh2001-09-101-6/+3
| | | | what using snprintf() achieves. It was also being used incorrectly.
* Do the best we can with respect to fixing command-line option disordersheldonh2001-09-041-62/+62
| | | | | | | | | | in the SYNOPSIS and DESCRIPTION. Note that -l remains an ugly exception, to which no known rules apply, since the specification of a single option multiple times isn't normal standards-compliant CLI behaviour. While here, mark AF_INET* and LOG_* defined values up with Dv.
* Extend the functionality offered by the -o option into a new optionsheldonh2001-09-023-2/+15
| | | | | | | | | | | | | | | -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 -> off_tache2001-09-021-6/+7
| | | | | | | | | | | 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.
* Add a new option, '-o', for "Write-only". Disables the RETR command,nik2001-08-283-2/+16
| | | | | | | | | 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.
* Rename the GLOB_MAXPATH flag of glob(3) to GLOB_LIMIT to be compatiblemikeh2001-07-292-2/+2
| | | | | | | | | | 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
* Portability configuration data for LukeM ftpd.obrien2001-07-191-0/+281
|
* Remove whitespace at EOL.dd2001-07-151-10/+10
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Remove S/Key. PAM can do its job. Well, not quite - there is an issuemarkm2001-07-094-63/+19
| | | | | | | 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.
* Move the definition of epsvall out of #ifdef VIRTUAL_HOSTING so thatdd2001-06-131-2/+2
| | | | the latter is not required for ftpd to compile.
* Cleaner method of making PAMable apps static (in the optional case ofmarkm2001-04-281-5/+0
| | | | wanting static apps).
* Damn. That should be _enable_ static linking, not _force_ static linking.markm2001-04-281-1/+0
|
* Enable (optional) static linking.markm2001-04-281-0/+6
| | | | Asked for by: BDE
* Change names of functions and variables with global scope that aremarkm2001-04-283-19/+19
| | | | | in conflict with library values of the same name. This allows static linking.
* mdoc(7) police: normalize .Nd.ru2001-04-181-2/+1
|
* Previous clobbered a work-in-progress. Here is the merged result:peter2001-04-171-3/+6
| | | | | | | | | | | | | | | | Limit the "pathname" glob to one item, as that is what all users of it are expecting, except for LIST. Always glob, instead of when the first character is a ~. For example, if you had directories ~/x1, and ~/x2, then "cwd x[1]" would fail, but "cwd ~/x[1]" would work since it was globbed due to the ~ character. Also, "cwd ~/x[12]" used to arbitarily work as it used the first expansion (ie: x1) without an error. Make it return '550 ambiguous' instead of '550 not found' so that the user can see the difference. For LIST, just use the user supplied string as the popen does the glob. Problem noticed by: Ajay Mittal <amittal@iprg.nokia.com>
* Limit number of paths returned via glob() for authorized usersjedgar2001-04-171-0/+4
| | | | using tilde expansion.
* Support the empty "PASS\r\n" command.green2001-04-161-3/+7
|
* Document that SITE extensions are disabled for anonymous logins.ru2001-04-161-0/+2
| | | | Obtained from: logdaemon package by Wietse Venema
* Add the "SITE MD5 filename" facility.phk2001-04-152-1/+16
| | | | | | | | | This allows you to determine if the file on the other side is the same as the one you have without transferring the entire file to compare. Needless to say, if the server end lies to you this check doesn't work, but on the other hand, if it lies to you about the files checksum, what can you trust from it ?
* Add full PAM support for account management and sessions.markm2001-03-272-12/+52
| | | | | | | 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>
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
OpenPOWER on IntegriCloud