summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2015-12-02comment typommcc
2015-12-01Support UTF-8: use wcwidth(3) for column adjustment and replaceIngo Schwarze
non-printable Unicode codepoints and invalid bytes with ASCII question marks. No change for the SMALL version. Using ideas developed by tedu@, phessler@, bentley@ and feedback from many. OK yasuoka@ czarkoff@ sthen@.
2015-11-27the rm code in mv inherited pledge from rm. it shoud be safe, but thereTed Unangst
are cases when it is too strict. after pledge() we continue to run some of the cp code which requires a very broad set of permissions. remove pledge entirely for now, pending a complete analysis of needs.
2015-11-27Use strlcpy to copy strings in struct mount, not memmove. AvoidsTodd C. Miller
reading past the end of a buffer. Problem found and OK jsg@
2015-11-24Revert previous tweak, pending a more complete rewording. Discussed withmmcc
halex@, sthen@, jmc@.
2015-11-22This man page uses "Note that" profusely, which is generally consideredmmcc
bad writing style. Also, add a paragraph break and split up a megasentence.
2015-11-22Don't use pdksh for self-reference and remove needless historicalmmcc
context.
2015-11-22Remove commented-out BUGS section that directs reports to long-extinctmmcc
upstream.
2015-11-21"one" -> "one or more"mmcc
2015-11-20honestly i think you should just zap that paragraph - it doesn;t maketb
sense to document that posix more or less says something should happen, and that it does. jmc
2015-11-20Cannot pledge bottom half of setting, because of the ioctl backingTheo de Raadt
"extproc", "ostart" and "ostop" are not allowed (yet?)
2015-11-20KNFTheo de Raadt
2015-11-20remove unused prototypetb
ok mmcc@
2015-11-20make ed restore the user defined prompt (specified with -p) when it was turnedtb
off and then on again with 'P'. ok daniel@
2015-11-18Only unget match[] if it has been used, ok sthenNicholas Marriott
2015-11-17as in rm, needs getpw in pledgeTed Unangst
2015-11-17don't need locale header anymoreTed Unangst
2015-11-17overwriting code isn't usedTed Unangst
2015-11-17int -> size_t for a len fieldmmcc
ok guenther@, deraadt@
2015-11-17remove some more flagsTed Unangst
2015-11-17trim down the flags in rmTed Unangst
2015-11-17remove Rflag and pflag (1) and rflag (0).Ted Unangst
2015-11-17remove getopt() from the nested cp and rm mainsTed Unangst
2015-11-17direct copy of cp and rm code into mv, so it can avoid fork+exec.Ted Unangst
some or even most of the code can still be streamlined more. ok deraadt
2015-11-17Missing "getpw" pledges, these were unnoticed because nobody expectsTheo de Raadt
a user_from_uid(3) call...
2015-11-16rename link to name to avoid shadowing the functionTed Unangst
2015-11-12use symbolics for flags to openTheo de Raadt
from Ricardo Mestre
2015-11-12Use isdigit() instead of ksh's homebrewed alternative.mmcc
ok nicm@. Also discussed with millert@ and guenther@.
2015-11-11fix pledge error messageTheo de Raadt
2015-11-11exit() after perror() for pledge failure. Perhaps this got introducedTheo de Raadt
as a test idiom, either when pledge was young or during the transition to strings.... dunno
2015-11-09add missing NAME entries; ok schwarzeJason McIntyre
2015-11-08Tweak a reallocarray call to be more overflow-resistant. From Theo Buehler.mmcc
ok nicm@
2015-11-07Make it clearer that warningf()'s first argument determines whether themmcc
lineno is printed. ok nicm@
2015-11-06add [ to NAME, and document it; the NAME addition wasJason McIntyre
proposed by ingo a while back but never got committed; ok schwarze
2015-11-05Capitalize entire macro name.mmcc
ok nicm@
2015-11-05Clean up an Xstring macro. Submitted by Theo Buehler.mmcc
ok and suggestions from nicm@
2015-11-05Remove an alias for a macro.mmcc
ok nicm@
2015-11-04replace setbuf with setvbuf, from Frederic NowakTed Unangst
2015-11-02Another aresize() -> areallocarray().mmcc
ok nicm@
2015-11-01aresize() -> areallocarray()mmcc
ok nicm@
2015-11-01Remove two casts of void* return types.mmcc
2015-11-01Drop a needless cast of a void *.mmcc
2015-11-01Add uses of areallocarray(). mksh and Bitrig ksh already have similarmmcc
functions. With help from Theo Buehler. ok nicm@
2015-10-30zap trailing whitespace;Jason McIntyre
2015-10-30Try to clarify the fc section a tad; fc apprently stands for "fix command".Todd C. Miller
Also the "fc -e -" syntax is obsoleted by "fc -s". OK tedu@
2015-10-30'fc -e -' is deprecated in favor of 'fc -s', so update the built-in aliasPhilip Guenther
ok millert@
2015-10-28unifdef _PATH_*Christian Weisgerber
2015-10-26miscellaneous cruft:Christian Weisgerber
* remove lint * unifdef S_IFLNK, S_ISFIFO, S_ISLNK, S_ISSOCK, O_APPEND * remove 0, NOTUSED, notdef -- untouched since original import * remove IIASA
2015-10-26remove the profiling and debugging ifdefs; ok zhuk@Christian Weisgerber
2015-10-26document the -p and -l file enquiries and explicitly do not document -sChristian Weisgerber
with/ok schwarze@