summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2013-03-30Return an exit code of 1 if the file cannot be opened (e.g. file doesLawrence Teo
not exist), or if there is an error reading the file stream. From Patrik Lundin, thanks! ok deraadt
2013-03-28Don't die with SIGFPE on INT_MIN / -1 or % -1. Instead make INT_MIN /Nicholas Marriott
-1 == INT_MIN and % -1 == 0. ok matthew deraadt
2013-03-28Don't die with SIGFPE on LONG_MIN / -1 or % -1. Instead make LONG_MIN /Nicholas Marriott
-1 == LONG_MIN and % -1 == 0. ok matthew deraadt
2013-03-27Enable support for write_opt=nodir for ustar archives which helps to fixVadim Zhukov
issues with some crappy tar archive readers out there that rely on the fact that directory entries ends up with "/" when created by GNU Tar, and now I'm finishing this commit message by mentioning people who gave input and okays: deraadt@ millert@ jmc@
2013-03-23wchan is no longer exposed, just check if wmesg is not empty.Ted Unangst
(wmesg hasn't itself been a pointer since conversion to kinfo_proc.) noticed by sthen. ok deraadt jsing millert sthen
2013-03-20Remove bogus #if 0'd code. As the comment says, POSIX doesn't need this.Todd C. Miller
OK martynas@
2013-03-18Keep documentation in sync with reality and update binding examples.Martin Pieuchot
This should have been part of the keybinding rewrote when support for multi-character sequences has been added. Pointed out by mikeb@
2013-03-12Add support for the -L and -P options.Philip Guenther
Based on a patch from Kent R. Spillner (kspillner (at) acm.org) ok jmc@ millert@
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2013-03-03Fix quoting in word part of ${var+word} (and similar) when entire thingPhilip Guenther
is quoted or in a here-doc. Patch from Alexander Polakov (plhk (at) sdf.org). ok mpi@ jung@
2013-01-21revert the tweak part of the last commit which, apart from theAlexander Hall
questionable functionality of being able to expand environment variables that did not match a filename, preserved the annoyance of having stuff like "~/nonexistant" expanded to "~/nonexistant\* " ok stsp@ mpi@
2013-01-20Fix backslash escaping during filename tab-completion in ksh.Stefan Sperling
Diff originally submitted by Alexander Polakov, with a small tweak from me to avoid breaking tab-completion of environment variables (problem pointed out by bentley). ok sthen halex mpi
2013-01-18command-line (adj.) -> command line (n.);Jason McIntyre
2013-01-17remove some uesless Pp;Jason McIntyre
2013-01-15tidyMarc Espie
okay miod@
2012-12-04remove sunos backwards compatTheo de Raadt
ok guenther
2012-12-04replace sys/param.h with sys/types.h (and sometimes add limits.h if needed)Theo de Raadt
ok guenther
2012-12-04remove sunos backwards compatTheo de Raadt
2012-12-04remove some unnecessary sys/cdefs.h inclusionsTheo de Raadt
2012-12-04remove some unnecessary sys/param.h inclusionsTheo de Raadt
2012-09-22last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-10fake a sigwinch after each job, so if the terminal changes size,Ted Unangst
we'll notice and update
2012-09-06Avoid modifying argv when building argv for $* and $@ since it willTodd C. Miller
affect ps output. This can happen when command line options are specified, e.g. "sh -c command". Based on a diff from espie@ OK espie@
2012-09-05backout, Todd's version may be cleaner, but it's also wrong.Marc Espie
2012-09-05sh -c should not munge argv[].Marc Espie
This fixes ps -ww output. joint work by millert@ and me@. okay otto@, deraadt@ "feel free to commit my version" millert@
2012-09-05overwrite with random stream; a repeating chunk of random data isn'tChristian Weisgerber
random at all ok tedu@
2012-09-05use "MS-DOS", for consistency with other docs;Jason McIntyre
2012-09-04one random overwrite is sufficient, after some discussion on techTed Unangst
2012-08-28Don't order file and dir creation, no measurable effect, ffsOtto Moerbeek
allocation strategy has changed since a long time and added to that cp(1) should not try to be smart and guess things it shouldn't know. ok guenther@ krw@
2012-08-23Reopen the systrace file in the process that will actually attach to thePhilip Guenthe
target process(es), so that systrace files can be made unsharable. ok djm@
2012-08-15use Lk for links;Jason McIntyre
2012-08-02Apply profiling to all threads instead of just the thread that calledPhilip Guenthe
profil() by moving P_PROFIL from proc->p_flag to process->ps_flags with matching adjustment in fork1() and exit1() ok matthew@
2012-07-12Use S_ISFIFO and S_ISSOCK instead of lseek() to determine whetherTodd C. Miller
an fd is a socket, pipe or named pipe. OK deraadt@ matthew@
2012-07-12With the -l option, only call time() once per run instead of once per filePhilip Guenthe
ok deraadt@
2012-07-11When copying a file sparsely, truncate the resulting file based on theMatthew Dempsky
current seek offset rather than what fstat() reported the original file's length was. This fixes things like "cp /dev/ksyms /tmp" so that we don't truncate the file to 0 bytes after copying all of the data. ok tedu, millert
2012-07-10Accounting for page tables, USPACE, and whatever else... as partTheo de Raadt
of the per-process %mem is not going to happen. In particular, we want USPACE to be removed from param.h
2012-07-08The algorithm name is "SHA-256" as per FIPS 180-2 (-3).Christian Weisgerber
2012-07-08Document ${var[@]} and ${var[*]}Philip Guenthe
ok espie@
2012-06-27fptreef() always returns 0 and we never use the return value anyway,Otto Moerbeek
so make it void; from Michael W. Bombardieri.
2012-06-19for arithmetic expressions, note that:Jason McIntyre
+A parameter that is NULL or unset evaluates to 0. original diff from robert peichaer this version from naddy
2012-06-18s/empy/empty/ typo fixMatthew Dempsky
thx Scott McEachern
2012-06-18Polish the rm -rP turd: if the fts_* routines have lstat()'ed thePhilip Guenthe
directory entry then use the struct stat from that instead of doing it again, and skip the rm_overwrite() call if fts_read() indicated that the entry couldn't be a regular file. ok millert@
2012-06-18Fix potential symlink race condition in "rm -P" by adding a checkTodd C. Miller
that the file we have opened is the one we expected. Also open in non-blocking mode to avoid a potential hang with FIFOs. Reported by Radoslaw A. Zarzynski. Fix adapted from NetBSD. OK guenther@
2012-06-10Correctly expand bindings containing macros. Fix a regression introducedMartin Pieuchot
in the keybinding system rewrite, reported by Lars Engblom.
2012-05-27domainname is read by rc, not netstart; from Chad GrossJason McIntyre
2012-05-13recommend sha256; from Lawrence TeoJason McIntyre
ok millert
2012-04-30generalise ksh keybinding system - bindings are no longer limited inDamien Miller
length and need not start with ESC or ^X; patch from marco@ feedback mpi@
2012-04-21Remove a check made superfluous by the KERN_PROC_SHOW_THREADS flag.Philip Guenthe
This lets new binaries work (at least w/o the -H option) with old kernels. ok pirofti@ deraadt@
2012-04-19add newline to signal error messages; Thomas PfaffTheo de Raadt
2012-04-17Make it optional for kvm_getprocs() (and related sysctl) to returnPaul Irofti
thread information. Add a KERN_PROC_SHOW_THREADS flag that has to be set in order to get the thread info and make it off by default. This creates backwards compatibility for applications that relied on a given size/number of items to be returned. Modify ps(1) and top(1) accordingly. Okay guenther@.