summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Missing `break' statements caused two error messages to becomeiedowse2001-09-291-1/+3
| | | | | | | | | "unkown error" [sic]. Add the missing breaks, and correct the spelling typo. PR: bin/30865 Submitted by: Dan Lukes <dan@obluda.cz> MFC after: 1 week
* RFC2349 (http://www.hypermail.org/rfcs/rfc2349.html) adds supportobrien2001-09-271-9/+120
| | | | | | | | | | | for negotiation of timeout and file size to the tftp protocol. This is required by some firmware like EFI boot managers (at least on HP i2000 Itanium servers) in order to boot an image using tftp. The attached patch implements the RFC, and in doing so also implements RFC2347; a generic tftp option extension. PR: 30710 Submitted by: Espen Skoglund <esk@ira.uka.de>
* RFC2132 is not clear about whether the "Maximum DHCP Message Size"iedowse2001-09-252-2/+4
| | | | | | | | | | | | | | | refers to the size of the whole ethernet packet, just the DHCP message within the UDP payload, or something else. bootpd interpreted it as a maximum UDP payload size, so it could end up sending fragmented packets to clients (such as some versions of Etherboot) that used different interpretations of the maximum message size. Switch to the most conservative interpretation: ensure that the ethernet packet containing the response is no larger than the specified maximum message size. This matches the behaviour of the ISC dhcpd. MFC after: 1 week
* 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
* Fixed some of style bugs.ru2001-09-121-1/+1
|
* 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.
* Include ttymsg.h from ../../usr.bin/wall instead of rolling our owndd2001-09-092-1/+3
| | | | prototype.
* 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.
* File positions are off_t nowdays, not long, so:ache2001-09-031-4/+4
| | | | | | | | | | | | atoi -> strtoll 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. Fix minor cast too.
* 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.
* Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.markm2001-08-297-885/+5
|
* 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.
* Put a parenthesis in the right place (DUH!).brian2001-08-251-1/+1
| | | | This fixes the apparent immediate client timeout problem.
* Remove description of an option that only applies to UNICOS < 7.0.dd2001-08-251-13/+0
| | | | | | | That define may still be present in the source, but I don't think anyone has plans to try to use it. Obtained from: NetBSD
* Understand that a return value of 0 from NgRecvMsg() means that thebrian2001-08-241-2/+8
| | | | | | | socket was closed. This prevents erroneous ``Unexpected netgraph version'' from turning up in the log.
* Added netid(5) manpage.ru2001-08-212-1/+92
| | | | | PR: docs/25657 Obtained from: OpenBSD
* Handle snprintf() returning < -1.brian2001-08-201-1/+1
|
* Handle snprintf() returning -1.brian2001-08-201-0/+2
| | | | MFC after: 2 weeks
* Feature merging and diff reduction between this code and crypto telnet.markm2001-08-2010-447/+279
| | | | | Also remove conditional (AUTHENTICATION) code as we have never compiled it here, and it is doubtful that it even works in this scenario.
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-3/+6
|
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-102-2/+2
| | | | with a trailing zero-width space: `e.g.\&'.
* mdoc(7) police:ru2001-08-073-8/+8
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Don't clobber the default for CFLAGS.bde2001-08-031-1/+1
|
* Fixes file descriptor leak in standalone mode.jon2001-08-031-0/+2
| | | | | | | | Prevents simultaneous calls to updatestat() as function is not reentrant. PR: bin/24857 Submitted by: Martin Butkus <mb@bagheera.thgwf.de> MFC after: 1 month
* Don't use SA_RESETHAND here. We gain nothing.brian2001-07-311-1/+1
| | | | Suggested by: bde
* Add a -l flag used to specify a label when no -p flag is given.brian2001-07-312-27/+54
| | | | | | Start new sentences on new lines in pppoed.8. MFC after: 1 week
* Use sigaction() without SA_RESTART rather than signal() so that webrian2001-07-311-5/+9
| | | | | | don't block in NgRecvData() after receiving a signal. MFC after: 1 week
* 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
* Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. Thesheldonh2001-07-266-8/+8
| | | | | | | definitions are more readable, and it's possible that they're more portable to pathalogical platforms. Submitted by: David Hill <david@phobia.ms>
* Xref to openssl(1) (i.e. "openssl passwd")kris2001-07-261-0/+1
| | | | | | PR: 28885 Submitted by: Gregory Bond <gnb@itga.com.au> MFC After: 1 week
* yp_errno is an `enum ypstat`.dd2001-07-241-1/+1
| | | | | | PR: 29190 Submitted by: Cristan Szmajda <cristan@unsw.edu.au> Reviewed by: md5(1)
* Save errno in signal handlerkris2001-07-241-0/+2
| | | | | Obtained from: OpenBSD MFC After: 1 week
* MFcrypto/telnet/telnetd: Correct semantics of output_data*() and netflush()kris2001-07-236-43/+47
| | | | to ensure deterministic operation
* by by -> bykris2001-07-231-1/+1
| | | | | Obtained from: OpenBSD MFC After: 1 week
* MFCrypto: fixed the remote buffer overflow.ru2001-07-206-310/+204
|
* Portability configuration data for LukeM ftpd.obrien2001-07-191-0/+281
|
* Remove whitespace at EOL.dd2001-07-1518-68/+68
|
* Print the month number properlybrian2001-07-131-1/+1
| | | | MFC after: 1 week
* Remove an extraneous spacebrian2001-07-111-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-1023-24/+24
|
* 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.
* Goodbye S/Key, Hello OPIE.markm2001-07-092-13/+17
| | | | | I believe I have done due dilligence on this, but I'd appreciate decent test scenarios and sucess (or failure) reports.
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-095-6/+0
|
* Fix the type of the NULL arg to execl()brian2001-07-095-5/+5
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).ru2001-07-063-3/+3
|
* mdoc(7) police: sort xrefs.ru2001-07-041-1/+1
|
* mdoc(7) police: removed hard sentence breaks.ru2001-07-041-10/+20
|
* stat(2) filesystem quotas act on, not filesystem quotas file resides on.mikeh2001-06-191-1/+1
| | | | | PR: bin/4949 MFC after: 2 weeks
* Fix some typos.olgeni2001-06-151-2/+2
| | | | MFC after: 1 week
OpenPOWER on IntegriCloud