summaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Was mising ftpchroot.5David E. O'Brien2002-08-301-0/+1
| | | | | | | | PR: 40717 Submitted by: Andrew <andrew@ugh.net.au> Notes: svn path=/head/; revision=102604
* The mode can be "r+" as well on PUT, but only "a" on APPE.Yaroslav Tykhiy2002-08-291-1/+1
| | | | Notes: svn path=/head/; revision=102566
* Fix lexer jam on unimplemented commands.Yaroslav Tykhiy2002-08-291-12/+13
| | | | | | | | Submitted by: maxim MFC after: 5 days Notes: svn path=/head/; revision=102565
* Remove variables no longer used.Yaroslav Tykhiy2002-08-271-2/+1
| | | | Notes: svn path=/head/; revision=102474
* More inithosts() fixes:Yaroslav Tykhiy2002-08-271-8/+15
| | | | | | | | | | | | | | o Don't free(3) memory occupied by host structures already in the host list. o Set hrp->hostinfo to NULL if a host record has to stay in the host list, but is to be ignored. Selecthost() knows that. o Reduce the pollution with excessive NULL checks. o Close a couple of memory leaks. MFC after: 1 week Notes: svn path=/head/; revision=102473
* Fix an inconsistency between a printf-like format and its argument list.Yaroslav Tykhiy2002-08-271-1/+1
| | | | | | | | Submitted by: kris MFC after: 3 days Notes: svn path=/head/; revision=102469
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-252-5/+6
| | | | Notes: svn path=/head/; revision=102411
* Add option '-W': don't log FTP sessions to wtmp.Yaroslav Tykhiy2002-08-232-5/+15
| | | | | | | | Submitted by: maxim MFC after: 1 week Notes: svn path=/head/; revision=102311
* Fix a nasty memory corruption bug caused by having a bogus pointerMarcel Moolenaar2002-08-221-0/+8
| | | | | | | | | | | | | | | for the DT_IA64_PLT_RESERVE dynamic table entry. When a shared object does not have any PLT relocations, the linker apparently doesn't find it necessary to actually reserve the space for the BOR (Bind On Reference) entries as pointed to by the DTE. As a result, relocatable data in the PLT was overwritten, causing some unexpected control flow with annoyingly predictable outcome: coredump. To reproduce: % echo 'int main() { return 0; }' > foo.c % cc -o foo foo.c -lxpg4 Notes: svn path=/head/; revision=102249
* Include stddef.h for NULL definition, rather than rolling our own here.Warner Losh2002-08-211-2/+1
| | | | | | | Reviewed by: jdp Notes: svn path=/head/; revision=102235
* Clean up hostname and hostinfo handling in inithosts():Yaroslav Tykhiy2002-08-201-5/+13
| | | | | | | | | | | | o check getaddrinfo(3) return value, not result pointer o getaddrinfo(3) returns int, not pointer o don't leak memory allocated for hostnames and hostinfo structures o initialize pointers that will be checked for NULL somewhere MFC after: 1 week Notes: svn path=/head/; revision=102183
* Add support for the R_IA64_IPLTLSB relocation in non-PLT context.Marcel Moolenaar2002-08-201-0/+30
| | | | | | | | | This relocation creates a function descriptor at the specified address and is commonly used for C++ to create virtual function tables. Notes: svn path=/head/; revision=102155
* Include <nlist.h> for nlist interfaces instead of depending on namespaceBruce Evans2002-08-181-0/+1
| | | | | | | pollution in <kvm.h>. Notes: svn path=/head/; revision=102069
* Bump document date for the 'beep only' change.Johan Karlsson2002-08-161-1/+1
| | | | Notes: svn path=/head/; revision=101960
* mdoc(7) police: Removed redundant .Ns calls.Ruslan Ermilov2002-08-132-2/+2
| | | | Notes: svn path=/head/; revision=101828
* Fix a wrong comment on (hopefully) right code.Yaroslav Tykhiy2002-08-131-2/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=101809
* Add tcpd to the build - though we don't need to for inetd, someone mightDavid Malone2002-08-131-0/+1
| | | | | | | | | | want it for some other service-running program. Approved by: markm MFC after: 1 week Notes: svn path=/head/; revision=101808
* Fix command help lines:Yaroslav Tykhiy2002-08-131-2/+2
| | | | | | | | | | | o PORT takes six byte values, not five. o TYPE argument is mandatory. Submitted by: demon (the 1st part) MFC after: 3 days Notes: svn path=/head/; revision=101806
* mdoc(7) police: nits.Ruslan Ermilov2002-08-131-2/+3
| | | | Notes: svn path=/head/; revision=101785
* mdoc(7) police: tidy up.Ruslan Ermilov2002-08-131-14/+19
| | | | Notes: svn path=/head/; revision=101783
* Fix typos; each file has at least one s/seperat/separat/Jens Schweikhardt2002-08-111-1/+1
| | | | | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days Notes: svn path=/head/; revision=101677
* Rework storing files thoroughly. This includes:Yaroslav Tykhiy2002-08-082-24/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | o Remove the race between stat(2) & fopen(3) when creating a unique file. o Improve bound checking when generating a unique name from a given pathname. o Ignore REST marker on APPE. No RFC specifies this case, but the idea of resuming APPE's implies this. o By default, deny upload resumes and appends by anonymous users. Previously these commands were translated to STOU silently, which led to broken files on server without any notification to the user. o Add an option, -m, to allow anonymous users to modify existing files (e.g., to resume uploads) if filesystem permissions permit. Portions obrainded from: OpenBSD MFC after: 3 weeks Notes: svn path=/head/; revision=101537
* Don't acquire the writer lock in rtld_exit when clearing the sharedJohn Polstra2002-08-081-2/+0
| | | | | | | | | | | objects' reference counts. This function is called by the atexit mechanism at program shutdown. I don't think the locking is necessary here. It caused OpenOffice builds to hang more often than not. Credit to Martin Blapp and Matt Dillon for helping to diagnose this problem and for testing the fix. Notes: svn path=/head/; revision=101532
* 1) Use "pathstring" instead of "STRING" consistently.Yaroslav Tykhiy2002-08-051-7/+5
| | | | | | | | | | | 2) Remove unneeded "if not NULL" props from "pathstring", which will never be NULL by the lexer design. Inspired by: OpenBSD MFC after: 1 week Notes: svn path=/head/; revision=101395
* Since GLOB_NOCHECK is set in the glob(3) call,Yaroslav Tykhiy2002-08-051-1/+1
| | | | | | | | | | | glob(3) will return at least one pathname unless a system error has occured. It's not a "not found" error otherwise. MFC after: 3 days Notes: svn path=/head/; revision=101380
* Spot places where "pathname" hasn't been checkedYaroslav Tykhiy2002-08-051-3/+4
| | | | | | | | | | | for NULL. The "pathname" rule may return NULL on a glob(3) error. Obtained from: OpenBSD MFC after: 1 week Notes: svn path=/head/; revision=101379
* Disallow invalid numeric mode values for SITE CHMOD.Yaroslav Tykhiy2002-08-051-3/+2
| | | | | | | | | | | | Earlier, a decimal number (e.g., 890) could be passed for mode, leading to dangerous permissions set: -1, that is, 07777. Obtained from: OpenBSD MFC after: 1 week Notes: svn path=/head/; revision=101378
* Reflect in the ftpd(8) manpage the fact that ASCII SIZEYaroslav Tykhiy2002-08-051-0/+3
| | | | | | | | | requests against large files will be denied. MFC after: 10 days Notes: svn path=/head/; revision=101376
* Deny the SIZE command on large files when in ASCII mode.Yaroslav Tykhiy2002-07-311-0/+6
| | | | | | | | | | | This eliminates an opportunity for DoS attack. Pointed out by: maxim Inspired by: lukemftpd, OpenBSD MFC after: 2 weeks Notes: svn path=/head/; revision=101034
* Conform to RFC 959, Appendix II, when replyingYaroslav Tykhiy2002-07-291-2/+7
| | | | | | | | | to a successful MKD command. MFC after: 1 week Notes: svn path=/head/; revision=100878
* Make the `-v' option a synonym for `-d'Yaroslav Tykhiy2002-07-262-2/+5
| | | | | | | | | | (as it was intended initially) and document it in the manpage. MFC after: 2 weeks Notes: svn path=/head/; revision=100720
* Document the -u (set umask) optionYaroslav Tykhiy2002-07-261-0/+9
| | | | | | | | | (which has been there at least since 4.4BSD-Lite!) MFC after: 2 weeks Notes: svn path=/head/; revision=100719
* Sort command-line options according to the mostly used style:Yaroslav Tykhiy2002-07-262-91/+91
| | | | | | | | | | alphabetical order, lower and upper case of the same letter stick together, lower case first. MFC after: 2 weeks Notes: svn path=/head/; revision=100717
* Use <arpa/ftp.h> stuff cleanly, without introducingYaroslav Tykhiy2002-07-251-1/+3
| | | | | | | | | | non-portable constants (in this case, hidden as offsets to the "?AEIL" string.) MFC after: 1 week Notes: svn path=/head/; revision=100684
* Re-use passive data ports with the SO_REUSEADDRYaroslav Tykhiy2002-07-241-10/+16
| | | | | | | | | | | | socket option to avoid exausting the passive port space by TIME_WAIT'ing connections. PR: bin/36955 Submitted by: Maxim Konovalov <maxim@FreeBSD.org> MFC after: 2 weeks Notes: svn path=/head/; revision=100615
* Remove the outdated casts to "char *" from the setsockopt(2),Yaroslav Tykhiy2002-07-242-17/+15
| | | | | | | | | | | | write(2), and getipnodebyaddr(3) calls. Now all the above functions accept "void *" in that arguments and have prototypes. Thus, the casts are useless under the normal circumstances (and would be harmful if the functions had no prototypes.) MFC after: 2 weeks Notes: svn path=/head/; revision=100612
* Clean up the syslog(3) messages on the setsockopt(2) errors:Yaroslav Tykhiy2002-07-241-12/+14
| | | | | | | | | | | | o Always check a setsockopt(2) return value o Use a consistent message format o Don't abort if the failed setsockopt(2) was actually not vital o Use LOG_WARNING, not LOG_ERR, in non-fatal cases MFC after: 1 week Notes: svn path=/head/; revision=100609
* use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.Hajimu UMEMOTO2002-07-221-4/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=100505
* Fix one RFC 959 incompliance:Yaroslav Tykhiy2002-07-221-3/+30
| | | | | | | | | | | Double double-quotes in a PWD result if they appear in the directory pathname. PR: misc/18365 MFC after: 1 week Notes: svn path=/head/; revision=100486
* Correct wrong grammar from previous commit. Note that fingerd is not limitedPhilippe Charnier2002-07-211-5/+10
| | | | | | | | | | to being an interface to finger(1), see -p flag. Remove a reference to name(?) program we don't have. Submitted by: wollman Notes: svn path=/head/; revision=100442
* Allow deleting and renaming stale symlinks andYaroslav Tykhiy2002-07-211-2/+2
| | | | | | | | | | | deleting symlinks pointing to directories. PR: bin/37250 Submitted by: Nino Dehne <TeCeEm@gmx.de> MFC after: 1 week Notes: svn path=/head/; revision=100439
* Add END markers to asm functions so that debuggers can find their size.Jake Burkholder2002-07-171-1/+3
| | | | Notes: svn path=/head/; revision=100265
* Avoid passing NULL to freehostent(3).Yaroslav Tykhiy2002-07-171-1/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=100263
* Fix setting parameters for getipnodebyaddr(3):Yaroslav Tykhiy2002-07-171-4/+4
| | | | | | | | | | | | o "struct addrinfo" contains a pointer to "struct sockaddr," not "struct sockaddr" itself o the function takes a pointer to "struct in*_addr", not to "struct sockaddr," so the address length must be corresponding MFC after: 1 week Notes: svn path=/head/; revision=100259
* GLOB_QUOTE has been retired.Mike Heffner2002-07-173-3/+3
| | | | Notes: svn path=/head/; revision=100222
* Use the right indent for the closing brace: it belongs to `if',Yaroslav Tykhiy2002-07-161-1/+1
| | | | | | | | | | not to `for'. The previous indent was reather misleading for the code reader. MFC after: 1 week Notes: svn path=/head/; revision=100183
* Replace the awkward hackery about strtok(3)Yaroslav Tykhiy2002-07-161-38/+56
| | | | | | | | | | | | by conventional one-way parsing of ftphosts(5). Don't let NULL hostname pointers into virtual host records as well. PR: bin/18410 MFC after: 1 month Notes: svn path=/head/; revision=100182
* Port to TI/RPC and/or IPV6.Alfred Perlstein2002-07-155-109/+125
| | | | | | | Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr> Notes: svn path=/head/; revision=100120
* Use fgetln(3) to read lines from configuration files (ftpusers, ftphosts.)Yaroslav Tykhiy2002-07-121-48/+78
| | | | | | | | | | | | | | | | Thus lines of any length can be handled, unlike before. Don't assume that each line read from the files ends with a newline. As a side effect in inithosts(), don't use automatic buffer at all, utilize malloc(3) when getting local host name instead. PR: misc/21494 Reviewed by: maxim, mikeh MFC after: 1 month Notes: svn path=/head/; revision=99877
* Add ability to only beep when mail arrives.Johan Karlsson2002-07-092-6/+27
| | | | | | | | | | | | | | | | comsat: only send two bell charecters if S_IXGRP is set and S_IXUSR is not. biff: add new option 'b' to set S_IXGRP. PR: 10931 Submitted by: Andrew J. Korty <ajk@purdue.edu> Approved by: sheldonh (mentor) MFC after: 1 month Notes: svn path=/head/; revision=99632