summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Make check for unknown login class actually work. Previously, using the ↵trasz2013-08-121-0/+2
| | | | | | | "-c" option with login class not defined in login.conf(5) would silently fail, resulting in using the default login class.
* Give up on using iconv to convert to UTF-8 at build time. I don't see anypeter2013-08-1210-50/+2783
| | | | | practical way to make iconv(1) as a build tool. Instead pre-convert. This gives us UTF-8 nvi catalogs even on systems without iconv enabled.
* Don't build the UTF-8 version of the catalogs without iconv enabled.peter2013-08-111-8/+7
| | | | Pointy-hat to: peter (don't do things at 4am!)
* Don't install a ru_SU.KOI8-R symlink, 'make delete-old' will just removepeter2013-08-111-1/+0
| | | | it again.
* Update nvi-1.79 to 2.1.1-4334a8297fpeter2013-08-115-434/+239
| | | | | | | | | | | | | | | | | | | | | | | | This is the gsoc-2011 project to clean up and backport multibyte support from other nvi forks in a form we can use. USE_WIDECHAR is on unless building for the rescue crunchgen. This should allow editing in the native locale encoding. USE_ICONV depends on make.conf having 'WITH_ICONV=YES' for now. This adds the ability to do things like edit a KOI8-R file while having $LANG set to (say) en_US.UTF-8. iconv is used to transcode the characters for display. Other points: * It uses gencat and catopen/etc instead of homegrown msg catalog stuff. * A lot of stuff has been trimmed out, eg: the perl and tcl bindings which we could never use in base anyway. * It uses ncursesw when in widechar mode. This could be interesting. GSoC info: http://www.google-melange.com/gsoc/proposal/review/google/gsoc2011/zy/1 Repo at: https://github.com/lichray/nvi2 Obtained from: Zhihao Yuan <lichray@gmail.com>
* In su(1), fix option ordering and clarify that the login class specifiedtrasz2013-08-111-5/+7
| | | | | | must be defined in login.conf. MFC after: 1 month
* ParseGetLine: don't treat a zero byte as end of buffer if P_end says it isn't.sjg2013-08-101-1/+1
| | | | | Consume up to next newline, and issue a parse warning. If no newline found before P_end, carry on as before.
* Pass variables prefixed with both LD_ and LD_32_ to the run-time linker.markj2013-08-071-13/+17
| | | | | | | | | | This prevents unintentional execution of programs when running ldd(1) on 32-bit Linux binaries. PR: 175339, 127276 Suggested by: kib, rstone Reviewed by: kib MFC after: 2 weeks
* Update serf 1.2.1 -> 1.3.0 for svnpeter2013-08-021-1/+1
|
* find: Allow -delete to delete files given as arguments.jilles2013-08-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Formerly, a command like find dir1/dir2 -delete would delete everything under dir1/dir2 but not dir1/dir2 itself. When -L is not specified and "." can be opened, the fts(3) code underlying find(1) is careful to avoid following symlinks or being dropped in different locations by moving the directory fts is currently traversing. If a problematic concurrent modification is detected, fts will not enter the directory or abort. Files found in the search are returned via the current working directory and a pathname not containing a slash. For paranoia, find(1) verifies this when -delete is used. However, it is too paranoid about the root of the traversal. It is already assumed that the initial pathname does not refer to directories or symlinks that might be replaced by untrusted users; otherwise, the whole traversal would be unsafe. Therefore, it is not necessary to do the check for fts_level == FTS_ROOTLEVEL. Deleting the pathnames given as arguments can be prevented without error messages using -mindepth 1 or by changing directory and passing "." as argument to find. This works in the old as well as the new version of find. Tested by: Kurt Lidl Reviewed by: jhb
* Merge bmake-20130730sjg2013-08-023-7/+7
| | | | | Main feature of interest is .MAKE.JOB.PREFIX= to suppress --- job --- tokens.
* Properly print arguments to vfork(2) and rfork(2).markj2013-08-012-1/+12
| | | | | | PR: 180976 Submitted by: Yuri <yuri@tsoft.com> (original patch) MFC after: 1 week
* MFC'ing to 9.2.obrien2013-07-301-1/+1
|
* grep -i does not work for simple patterns and single byte locales, likeache2013-07-301-2/+2
| | | | | | | LANG=ru_RU.KOI8-R grep -i <some single KOI8-R letter> Fix it. MFC after: 3 days
* Include an Accept header in requests.des2013-07-301-1/+2
| | | | | PR: kern/180917 MFC after: 1 week
* Add Michael Gmelin's name to the copyright statement.des2013-07-301-1/+2
|
* Revert r253748,253749avg2013-07-281-0/+1
| | | | | | This WIP should not have been committed yet. Pointyhat to: avg
* remove needless inclusion of machine/cpu.h in userlandavg2013-07-281-1/+0
| | | | MFC after: 21 days
* Remove EOL whitespace.joel2013-07-281-1/+1
|
* Update subversion-1.8.0 -> 1.8.1. Update supportingpeter2013-07-283-6/+20
| | | | | | | components: apr-1.4.6 -> 1.4.8 and apr-util-1.4.1 -> 1.5.2. This is a post point-zero bug-fix / fix-sharp-edges release, including some workarounds for UTF-8 for people who haven't yet turned on WITH_ICONV.
* Make the BSD-licensed patch the default.pfg2013-07-261-3/+3
| | | | | | | | | | | | | | | The BSD-licensed patch(1) command has matured and it's behaviour can be considered equivalent to the older version of GNU patch in the tree. The switch has been extensively tested [1] and only two ports presented regressions, which have since been fixed. For convenience a new WITH_GNU_PATCH option is available, but it will likely be removed in the near future. PR: 176313 Approved by: portmgr
* Implement certificate verification, and many other SSL-relateddes2013-07-262-35/+273
| | | | | | | | imrovements; complete details in the PR. PR: kern/175514 Submitted by: Michael Gmelin <freebsd@grem.de> MFC after: 1 week
* patch: style fixpfg2013-07-241-2/+4
| | | | Submitted by: gogolok
* Remove the large part of struct ipsecstat. Only few fields of thisae2013-07-231-69/+3
| | | | | | | | | | | structure is used, but they already have equal fields in the struct newipsecstat, that was introduced with FAST_IPSEC and then was merged together with old ipsecstat structure. This fixes kernel stack overflow on some architectures after migration ipsecstat to PCPU counters. Reported by: Taku YAMAMOTO, Maciej Milewski
* mdoc nitdes2013-07-211-1/+2
|
* Close uniq(1) in the capability mode sandbox and limit descriptors usingpjd2013-07-181-0/+43
| | | | capability rights.
* - Make localtime(3) to work in sandbox.pjd2013-07-181-5/+28
| | | | - Move strerror(3) initialization to its own function.
* Sweep unused nlist entries.glebius2013-07-161-48/+26
| | | | Sponsored by: Nginx, Inc.
* Nuke "systat -mbuf". It was broken since FreeBSD 5, and since thereglebius2013-07-155-209/+2
| | | | haven't been any complaints, no one used it.
* Introduce new structure sfstat for collecting sendfile's statisticsae2013-07-152-11/+15
| | | | | | | and remove corresponding fields from struct mbstat. Use PCPU counters and SFSTAT_INC() macro for update these statistics. Discussed with: glebius
* Add -F fibnum option to specify an FIB number for -r flag.hrs2013-07-124-11/+40
|
* Report error for out-of-range numerical inputs. Requested by brooks.theraven2013-07-101-0/+8
|
* Migrate structs ahstat, espstat, ipcompstat, ipipstat, pfkeystat,ae2013-07-092-5/+5
| | | | ipsec4stat, ipsec6stat to PCPU counters.
* Migrate struct carpstats to PCPU counters.ae2013-07-091-1/+1
|
* Migrate structs ip6stat, icmp6stat and rip6stat to PCPU counters.ae2013-07-091-3/+3
|
* Migrate structs arpstat, icmpstat, mrtstat, pimstat and udpstat to PCPUae2013-07-092-5/+5
| | | | counters.
* Use new macros to implement ipstat and tcpstat using PCPU counters.ae2013-07-093-20/+16
| | | | Change interface of kread_counters() similar ot kread() in the netstat(1).
* Prepare network statistics structures for migration to PCPU counters.ae2013-07-093-125/+109
| | | | | | | | | | Use uint64_t as type for all fields of structures. Changed structures: ahstat, arpstat, espstat, icmp6_ifstat, icmp6stat, in6_ifstat, ip6stat, ipcompstat, ipipstat, ipsecstat, mrt6stat, mrtstat, pfkeystat, pim6stat, pimstat, rip6stat, udpstat. Discussed with: arch@
* Remove unnecessary cast to pid_t.kevlo2013-07-042-3/+3
|
* Merge r252513 from src/gnu/usr.bin/patch into src/usr.bin/patch:obrien2013-07-031-1/+1
| | | | | | | | Properly handle input lines containing NUL characters such that pgets() accurately fills the read buffer. Callers of pgets() still mis-process the buffer contents if the read line contains NUL characters, but this at least makes pgets() accurate.
* Merge r252512 from src/gnu/usr.bin/patch into src/usr.bin/patch:obrien2013-07-031-2/+6
| | | | | | | | | Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same. The former makes a copy of stdin, but was not accurately putting the content of stdin into a temp file. This lead to the undercounting the number of lines in hunks containing NUL characters when reading from stdin. Thus resulting in "unexpected end of file in patch" errors.
* Few more style nits.pjd2013-07-031-13/+10
| | | | MFC after: 1 month
* Sandbox rwho(1) using capability mode and Capsicum capabilities.pjd2013-07-031-3/+23
| | | | | | | | | rwho(1) gets only read-only access to /var/rwho/ directory. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month
* Style cleanups.pjd2013-07-031-45/+53
| | | | | | | Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month
* As a followup to r252547, propate const down the call stack.peter2013-07-031-1/+1
|
* Attempt to deal with a compile failure that shows up with gcc, whichpeter2013-07-032-0/+4
| | | | | has -Werror on. Without this, yylex() is inconsistently or redundantly defined.
* If you've compiled your base system with WITH_ICONV, then use it for svnpeter2013-07-012-0/+10
| | | | | | | alongside the other consumers (bsdtar, csh etc). The svnlite build gets upset when it hits non-ascii characters in inconvenient places.
* Update to current configuration.peter2013-07-013-13/+139
|
* killall: add -q flag to suppress error message when no processes are matchedmjg2013-06-302-4/+11
| | | | | | | | Man-page text provided by wblock. PR: bin/30542 Submitted by: Tony Finch <dot@dotat.at> (original version) MFC after: 1 week
* truss: recognize O_DIRECTORY, O_EXEC, O_TTY_INIT and O_CLOEXECmjg2013-06-301-1/+1
| | | | MFC after: 3 days
OpenPOWER on IntegriCloud