aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC: Use sysctlbyname(3) and some other minor cleanups.John Baldwin2007-10-181-13/+8
| | | | Notes: svn path=/stable/4/; revision=172756
* MFC rev. 1.16 (iedowse):Xin LI2006-10-081-3/+3
| | | | | | | | | Add missing parentheses to fix a segmentation fault that is easily reproducable with `jot -s " " 400 1 | column -t'. The bug was present in the the original CSRG 'column -t' added in 1989. Notes: svn path=/stable/4/; revision=163117
* MFC rev. 1.14: simple strcpy/strcat replacement.Maxim Konovalov2006-08-201-3/+4
| | | | Notes: svn path=/stable/4/; revision=161485
* MFC change 2005-09-19 10:11:47 UTCDiomidis Spinellis2006-01-224-1/+6
| | | | | | | Setting .nofinger will not hide you from root. Notes: svn path=/stable/4/; revision=154674
* MFC 1.47: Document the TMPDIR environment variable.Diomidis Spinellis2006-01-221-1/+3
| | | | Notes: svn path=/stable/4/; revision=154673
* Correct insecure temporary file usage in texindex. [06:01]Colin Percival2006-01-111-12/+22
| | | | | | | | | | | | | | Correct insecure temporary file usage in ee. [06:02] Correct a race condition when setting file permissions, sanitize file names by default, and fix a buffer overflow when handling files larger than 4GB in cpio. [06:03] Security: FreeBSD-SA-06:01.texindex Security: FreeBSD-SA-06:02.ee Security: FreeBSD-SA-06:03.cpio Notes: svn path=/stable/4/; revision=154218
* MFC 1.28Diomidis Spinellis2005-12-251-2/+9
| | | | | | | | | Bug fix: a numeric flag specification in the substitute command would cause the next substitute flag to be ignored. While working at it, detect and report overflows. Notes: svn path=/stable/4/; revision=153717
* MFC 1.19Diomidis Spinellis2005-12-251-1/+1
| | | | | | | | Use the appropriate error function for displaying the error, instead of printing it to stdout. Notes: svn path=/stable/4/; revision=153716
* MFC 1.24: Fix an erroneous description of the file descriptorJohn Polstra2005-11-041-5/+3
| | | | | | | assignments for the "~C" command. Notes: svn path=/stable/4/; revision=152037
* MFC 1.32, always read to and write from a terminal.Doug Barton2005-09-101-4/+5
| | | | | | | | | PR: bin/65892 Requested on: freebsd-security Requested by: Yar Tikhiy <yar@comp.chem.msu.su> Notes: svn path=/stable/4/; revision=149962
* MFC: Sync with HEAD: fix typos, correct dates, add new freebsdMurray Stokely2005-08-195-5/+24
| | | | | | | committer birthdays, add a few new history dates. Notes: svn path=/stable/4/; revision=149264
* Make sure the dest_realm buffer is always NUL terminated.Simon L. B. Nielsen2005-05-291-1/+1
| | | | | | | | | | | | | | | | This code is only used when rlogin is compiled with Kerberos 4 support, and since the Kerberos code in rlogin has been removed from FreeBSD 5.0 and newer, this is not an MFC. It is not believed that this bug could be exploited as a security vulnerability. PR: bin/80661 Submitted by: Przemyslaw Frasunek <venglin@freebsd.lublin.pl> Approved by: cperciva Notes: svn path=/stable/4/; revision=146750
* MFC:Gleb Smirnoff2005-05-232-5/+11
| | | | | | | | | | Add option -l, to make output line buffered. PR: bin/78692 Submitted by: Eugene Grosbein Notes: svn path=/stable/4/; revision=146542
* MFC:Remko Lodder2005-04-221-0/+1
| | | | | | | | | | | date: 2005/04/10 19:03:48; author: remko; state: Exp; lines: +1 -0 Add myself to the calendar. MFC after: 1 week Approved by: simon (mentor) Notes: svn path=/stable/4/; revision=145402
* MFC src/contrib/telnet/telnet.c 1.16: Correct buffer overflows inJacques Vidrine2005-03-281-6/+24
| | | | | | | | telnet(1). Security: CAN-2005-0468, CAN-2005-0469 Notes: svn path=/stable/4/; revision=144232
* MFC 1.23-1.26:Giorgos Keramidas2005-02-221-11/+10
| | | | | | | | | - Clarify a bit the BUGS section - Quote example file names consistently - Various fixes (contractions, grammar, etc) Notes: svn path=/stable/4/; revision=142227
* MFC rev. 1.34: print a correct status for unix domain sockets, restoreMaxim Konovalov2005-02-131-0/+2
| | | | | | | input mode when return from the command one. Notes: svn path=/stable/4/; revision=141797
* MFC: Sync.Ruslan Ermilov2004-12-201-12/+35
| | | | Notes: svn path=/stable/4/; revision=139061
* - MFC:Marius Strobl2004-12-131-3/+2
| | | | | | | | | | | | | | | | | | | | | | | lib/Makefile 1.155 libexec/Makefile 1.57 usr.bin/Makefile 1.234 (partly), 1.235 Build non-crypto telnet(1) and telnetd(8) if NO_OPENSSL is defined. - Replace the check for the non-existence of src/secure and src/kerberosIV with a check for the non-existence of src/crypto only. This is to bring these checks in line with the demise of the NOSECURE knob and because if src/crypto doesn't exist we won't build any crypto stuff including not Kerberos IV (and also not Kerberos 5 for that matter). Note: On HEAD all these checks for the existence of crypto sources even have been completely removed. Discussed with: ru (some months ago) Reviewed by: ru (some months ago) Approved by: markm (telnet and secure bits, some months ago) Notes: svn path=/stable/4/; revision=138807
* MFC:Marius Strobl2004-12-132-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makefile.inc1 1.361 bin/ed/Makefile 1.22 lib/Makefile 1.157 lib/libcrypt/Makefile 1.31 lib/libfetch/Makefile 1.41 lib/libpam/modules/modules.inc 1.17 libexec/Makefile 1.61 share/examples/etc/make.conf 1.215 share/man/man5/make.conf.5 1.73 usr.bin/Makefile 1.239 usr.bin/fetch/Makefile 1.14 usr.sbin/pkg_install/Makefile 1.14 usr.sbin/pkg_install/add/Makefile 1.17 usr.sbin/pkg_install/info/Makefile 1.17 usr.sbin/pkg_install/version/Makefile 1.12 usr.sbin/ppp/Makefile 1.95, 1.96 usr.sbin/pppd/Makefile 1.25 usr.sbin/sendmail/Makefile 1.40 usr.sbin/tcpdump/tcpdump/Makefile 1.36 Retire the useless NOSECURE knob. The motivation for this MFC is that MAKE_KERBEROS4 and MAKE_KERBEROS5 are meant to be buildable by various makefiles when NOSECURE is set but this was broken because Kerberos depends on e.g. des(3) from OpenSSL which wasn't built when NOSECURE was defined. Fixing the NOSECURE knob however would have meant to make it do the same as the NOCRYPT knob. If you had been using the NOSECURE build knob please now use the NOCRYPT knob instead. Discussed with: ru (some months ago) Reviewed by: ru (some months ago) Approved by: markm (telnet and secure bits, some months ago), kensmith (re) Notes: svn path=/stable/4/; revision=138803
* MFC whois.c:Marius Strobl2004-12-122-4/+14
| | | | | | | | | | | | | | | | | | | | 1.42: Add a -k flag for querying whois.krnic.net (the National Internet Development Agency of Korea) which hold details of IP address allocations within Korea. MFC whois.1: 1.33: Add a -k flag for querying whois.krnic.net (the National Internet Development Agency of Korea) which hold details of IP address allocations within Korea. 1.34: Bump document date. Short MFC interval to get this into RELENG_4 before the freeze for FreeBSD 4.11. MFC ok'ed by: ceri Notes: svn path=/stable/4/; revision=138765
* MFC whois.c:Marius Strobl2004-12-122-10/+38
| | | | | | | | | | | | | | | | | | | | | 1.29: Mark a function as __printflike(). 1.30: Leave the `copyright' variable exposed, since the main purpose of it is to put a copyright in the object file. 1.35: Add support for identifying NORID (norwegian top level registry) handles. 1.38: Add whois.iana.org to the whois(1) utility, under the -I option. 1.39: Add whois.abuse.net to whois(1). 1.40: Add -b to usage. 1.41: Add special case for the german whois nameserver. MFC whois.1: 1.29: mdoc(7) police: markup polishing. 1.30: Add whois.iana.org to the whois(1) utility, under the -I option. 1.31: Date bump. 1.32: Add whois.abuse.net to whois(1). Notes: svn path=/stable/4/; revision=138761
* MFC: 1.21Alexander Nedotsukov2004-12-111-4/+2
| | | | | | | | | | Fix -t option processing. Partially initialized tm structure was passed into mktime(3). Approved by: ru Notes: svn path=/stable/4/; revision=138684
* FreeBSD-SA-04:16.fetch:Colin Percival2004-11-181-1/+2
| | | | | | | MFC revision 1.75 of src/usr.bin/fetch/fetch.c Notes: svn path=/stable/4/; revision=137855
* We already have GBK support so make sure that mklocale(1) would notXin LI2004-10-081-0/+1
| | | | | | | | | | complain that it is not supported. Reviewed by: ru Approved by: murray (mentor) Notes: svn path=/stable/4/; revision=136245
* MFC: (1.73) restore the r_flag check; this unbreaks mirror mode.Dag-Erling Smørgrav2004-09-251-1/+1
| | | | Notes: svn path=/stable/4/; revision=135790
* MFC eval.c 1.22, extern.h 1.12, main.c 1.26: Store a pointer to "null" inTim J. Robbins2004-08-233-6/+6
| | | | | | | | | | | struct ndblock's defn member instead of a duplicate allocated on the heap; the address defn points to is significant, and is checked against the address of "null" in certain conditionals. PR: 59883 Notes: svn path=/stable/4/; revision=134206
* MFC: (1.72) don't rely on sb.st_size unless we're sure it's meaningful.Dag-Erling Smørgrav2004-08-221-5/+16
| | | | Notes: svn path=/stable/4/; revision=134141
* MFC: (1.69) truncate long file names in progress meterDag-Erling Smørgrav2004-08-101-13/+12
| | | | | | | | (1.70) style nits (1.71) don't strip trailing whitespace from passwords Notes: svn path=/stable/4/; revision=133417
* MFC rev. 1.75Gleb Smirnoff2004-08-051-0/+1
| | | | | | | | PR: bin/69674 Approved by: julian (mentor) Notes: svn path=/stable/4/; revision=133156
* MFC rev. 1.31: the signal number has to be less than NSIG strictly.Maxim Konovalov2004-08-051-1/+1
| | | | Notes: svn path=/stable/4/; revision=133151
* MFC 1.61,1.62:Colin Percival2004-08-021-3/+7
| | | | | | | | | | Restore part of the word that got (accidentally) removed. Removed whitespace at EOL. Document the behaviour of the "-o file" option when "file" is a directory (downloaded file(s) are created inside the directory). Notes: svn path=/stable/4/; revision=132989
* MFC rev. 1.13 limits.c and rev. 1.25 limits.1:Maxim Konovalov2004-07-172-5/+6
| | | | | | | | | | Update the usage string in the limits(1) manpage to include -b for sbsize. Also, correct the format string in getopt(3) usage to reflect that -b takes an argument, and correct another case of RLIMIT_SBSIZE having been forgotten. Notes: svn path=/stable/4/; revision=132314
* Stop pretending we support full-blown HTTP/1.1 because we are notYaroslav Tykhiy2004-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | ready to handle all its aspects. Failure to deal with HTTP/1.1, with chunked transfer encoding in particular, led to broken transfers and data corruption. Fall back to using HTTP/1.0, which is safe. A point to note: While the "Host:" header had not been in the original HTTP/1.0 standard, it became a de-facto standard for HTTP/1.0 as well. It is understood by servers in HTTP/1.0 sessions if supported at all. This issue doesn't apply to CURRENT since lukemftp handles HTTP/1.1 correctly. PR: bin/68547 Reviewed by: vs Notes: svn path=/stable/4/; revision=132252
* MFC: 1.18Giorgos Keramidas2004-07-151-1/+1
| | | | | | | Correct a minor syntax mistake. Notes: svn path=/stable/4/; revision=132223
* Catch up with -current.Jens Schweikhardt2004-07-1110-225/+395
| | | | Notes: svn path=/stable/4/; revision=131995
* MFC of the new variable `.MAKEFILE_LIST'. Add the followingOliver Eikemeier2004-07-102-3/+29
| | | | | | | | | | | | | | | | | | | | | | to make.conf(5) to have a `deptree' target in all makefiles: .NOTMAIN: deptree deptree: @echo 'Dependency tree for ${MAKE} in ${.CURDIR}:' @l=1; \ for d in ${.MAKEFILE_LIST}; do \ case "$$d" in \ ..) l=$$(($$l-2));; \ /*) printf '%-*s%s\n' $$l '' "`realpath \"$$d\"`"; \ l=$$(($$l+2));; \ *) printf '%-*s%s\n' $$l '' \ "`realpath \"${.OBJDIR}/$$d\"`"; \ l=$$(($$l+2));; \ esac \ done Notes: svn path=/stable/4/; revision=131892
* MFC (1.68): fix discrepancy between code and docs for -S option.Dag-Erling Smørgrav2004-07-011-1/+0
| | | | Notes: svn path=/stable/4/; revision=131406
* Back out printing sfbufs stats.Max Khon2004-06-181-15/+1
| | | | Notes: svn path=/stable/4/; revision=130679
* MFC:Max Khon2004-06-171-1/+15
| | | | | | | | | | | | | | sendfile(2)-related statistics that can be viewed through netstat -m: - The number of times sendfile() had to do disk I/O - The number of times sfbuf allocation failed - The number of times sfbuf allocation had to wait and three sysctl's: kern.ipc.nsfbufs, kern.ipc.nsfbufspeak, kern.ipc.nsfbufsused that also can be viewed through netstat -m. Submitted by: Igor Sysoev <is (at) rambler-co.ru> Notes: svn path=/stable/4/; revision=130618
* MFC: Add missing dot and newline in a message.Max Khon2004-06-161-1/+1
| | | | Notes: svn path=/stable/4/; revision=130608
* MFC of the `-depth n' primary and the -maxdepth fix.Oliver Eikemeier2004-06-116-26/+95
| | | | Notes: svn path=/stable/4/; revision=130342
* MFC: 1.29: Avoid a null pointer dereference if the .DEFAULT targetRuslan Ermilov2004-06-101-1/+6
| | | | | | | has no commands. Notes: svn path=/stable/4/; revision=130300
* MFC rev 1.28: Alice, Christopher Robin and Pooh Bear.Seigo Tanimura2004-06-011-0/+5
| | | | Notes: svn path=/stable/4/; revision=129933
* MFC: rev 1.8/1.9, fix description of the symmetric nature of the enigmaJoerg Wunsch2004-05-221-9/+18
| | | | | | | | | | | | | | encryption, update xrefs. PR: Submitted by: Reviewed by: Approved by: Obtained from: MFC after: Notes: svn path=/stable/4/; revision=129572
* MFC rev 1.60, 1.61 (document how -maxdepth and -mindepth really work)Oliver Eikemeier2004-05-211-3/+16
| | | | | | | | PR: 66613 Approved by: ru Notes: svn path=/stable/4/; revision=129542
* MFC: Sync du up with -CURRENT. This includes:Tim Kientzle2004-05-121-54/+150
| | | | | | | | | | * Faster link checking * ANSIfication * -h/-k interaction fixes * Style updates Notes: svn path=/stable/4/; revision=129146
* MFC rev. 1.21: Fix BSS buffer overflow in makeargv().Tim J. Robbins2004-05-121-2/+3
| | | | Notes: svn path=/stable/4/; revision=129138
* MFC:Christian Brueffer2004-05-071-2/+3
| | | | | | | | | | | 1.21 kill hard sentence breaks 1.22 fix typo PR: docs/66263 Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us> Notes: svn path=/stable/4/; revision=129032
* MFC: (1.66) workaround for servers that ignore ranges in chunked mode.Dag-Erling Smørgrav2004-04-121-1/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/stable/4/; revision=128164