summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Introduce options list the standard way. Correct style(9) in FILES section.charnier2004-07-261-4/+2
|
* Introduce options list the standard way.charnier2004-07-261-2/+2
|
* Remove useless .Pp. Typo: gcos -> gecos (as spelled in passwd(5)).charnier2004-07-261-2/+1
|
* Assign the result of getopt() to an int rather than to a char (which isstefanf2004-07-261-3/+2
| | | | possibly unsigned).
* Add a --version option to bsdtar that prints the versions ofkientzle2004-07-262-4/+21
| | | | | both bsdtar and libarchive. Of course, this requires that bsdtar have a version number. Let's call this 1.00, shall we? ;-)
* wrong order, not 10/03 -> 03/10andreas2004-07-251-1/+1
|
* A bunch of style and security fixes (error checking return values, etc),kientzle2004-07-254-35/+70
| | | | mostly from: Tim J Robbins
* Of course, I meant POSIX.1-1996, not 1997.kientzle2004-07-251-1/+1
| | | | Thanks to: Andrey Chernov
* A bunch of stuff from Christoph Mellon:kientzle2004-07-247-74/+77
| | | | | | | | * Whitespace fixes * Check some malloc calls * Simplify long_help formatting * Spell "LINUX" -> "linux" * A few other miscellaneous style improvements
* Add my birthday.ssouhlal2004-07-241-0/+1
| | | | Approved by: grehan (mentor)
* Document incorrect handling of multibyte characters.tjr2004-07-231-1/+5
|
* Tweak markup of quoted strings and characters: use Dq instead of enclosingtjr2004-07-231-12/+44
| | | | strings in ``obsolete quotes''. Use Li and Ql where appropriate.
* Add a lengthy discussion of why "tr a-z A-Z" and "tr A-Z a-z" are not thetjr2004-07-231-1/+41
| | | | right way to perform case-conversion.
* Make size suffix case insensitive.le2004-07-222-3/+6
| | | | | PR: bin/27604 Submitted by: David Xu <davidx@viasoft.com.cn>
* display.c:johan2004-07-224-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 'savech' is only used if it is set a few lines above where it is used, initialize it to silence warning. - 'length' is either -1 or greater than 0, hence it is safe to cast it to unsigned when comparing it here. odsyntax.c: - 'p' is assigned either (*argvp)[0] or (*argvp)[1] which both are char *. 'num' and 'end' are assigned values based on 'p'. Hence use char * instead of unsigned char * for these variables. '&end' as the second argument to strtoll does not need to be casted to char** any more. This solves a 'dereferencing type-punned pointer will break strict-aliasing rules' warning when compiling with -O2. parse.c: - 'prec' is only used when sokay == USEPREC and sokay = USEPREC when 'prec' is assigned. Hence 'prec' is not used uninitialized, initialize it to silence warning. - The code involving 'nextpr' is hard to follow, but I belive 'nextpr' will not be used unless it is initialized. Anyway, IF 'nextpr' is used uninitialized it is better to get a consistant error (seg fault, when dereferencing a NULL pointer) than potentially accessing some random memory. The above changes makes hexdump WARNS=6 clean even when compiled with -O2. Hence bump WARNS to keep it clean. Tested by: CFLAGS='-O2 -pipe' make universe
* Fix handling of comments on .elif lines. The patch given in a followupharti2004-07-221-0/+7
| | | | | | | | | | | | to the PR failed, because the line skipping function is actually called from two places in the code to do quite different things (this should be two functions probably): in a false .if to skip to the next line beginning with a dot and to collect .for loops. In the seconds case we should not skip comments, because they are actually harder to handle than we need for the .if case and should defer this to the main code. PR: bin/25627 Submitted by: Seth Kingsley (original patch)
* My bad: /dev/sa0, no 'r'kientzle2004-07-211-1/+1
| | | | Thanks (and many apologies) to: Cristoph Mallon
* Slide pipe.h include after the _KERNEL define in preparation for disallowingsilby2004-07-211-1/+1
| | | | non-_KERNEL inclusions of pipe.h
* Improve make's diagnostic of mistmatched .if-.endif. This patch isharti2004-07-203-18/+39
| | | | | | | | | | slightly different from the patch in the PR. The problem is, that make handles .if clauses inside false .if clauses simply by counting them - it doesn't put them onto the conditional stack, nor even parses them so we need an extra line number stack for these ifs. PR: bin/61257 Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
* Guard against argv[0] being NULL.kientzle2004-07-191-6/+11
| | | | Thanks to: Tim J Robbins
* Make it clearer what means 'won't work' for .if string == ${VAR}.harti2004-07-191-5/+12
| | | | | | | | | | | | | Replace the use of '=' in conditionals in the examples by the more correct '=='. Clarify the example explaining that .for expansion takes place before .if handling by showing the correct code instead of saying 'the other way around'. Change a variable name there so the example is more parseable to the human reader. PR: docs/65400 Submitted by: Roman Neuhauser <neuhauser@chello.cz>
* Avoid passing negative values to tolower() on machines with signed chars.tjr2004-07-191-1/+1
|
* Sort sections.tjr2004-07-191-3/+3
|
* Move exit status information into a DIAGNOSTICS section. Add an ENVIRONMENTtjr2004-07-191-3/+15
| | | | | section. Re-add a sentence from the BUGS section that went missing in the previous commit.
* Add support for multibyte characters. While here, fix a longstanding bug intjr2004-07-192-59/+68
| | | | | the implementation of the -d option: we were skipping too many characters when a non-alphanumeric character was encountered.
* Point out in the BUGS section that look expects input files to havetjr2004-07-191-0/+7
| | | | been sorted with LC_COLLATE=C.
* Today is a good day to add myself here :)glebius2004-07-191-0/+1
| | | | Approved by: julian (mentor)
* Fix some misspellings, document the TAPE environmentkientzle2004-07-191-2/+16
| | | | variable and the default tape device.
* Don't forget the arguments for -M and -N in the DESCRIPTION section.stefanf2004-07-181-2/+2
|
* Remove the dependency of the :C/regexp/replacement/ variable modifierkeramida2004-07-181-8/+7
| | | | | | | | | from the :S modifier which follows a bit further below. This way the reader can read each of these two descriptions without having to jump back and forth in the manpage. PR: docs/26943 Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
* Revert WARNS bump until I figure out why this does not work.johan2004-07-171-1/+0
|
* Support readlink(2) better. Readlink does not nul terminate thealfred2004-07-1710-20/+32
| | | | | | | | result buffer, so we need to format it ourselves. The problem is that the length is stored as the return value from readlink, so we need to pass the return value from our syscall into print_arg. Motivated by: truss garbage on my screen from reading /etc/malloc.conf.
* When reporting reciept of a signal, print the signal's name.alfred2004-07-173-7/+26
|
* Remove unused user_uname variable.kientzle2004-07-172-16/+8
| | | | | | Add range-checking to argument of -b. Thanks to: Tim J Robbins
* Make bsdtar the default system tar. This makes /usr/bin/tar a symlinkkientzle2004-07-171-1/+1
| | | | | pointing to /usr/bin/bsdtar by default. To make it point to /usr/bin/gtar, you can define WITH_GTAR.
* Validate -o usage. Strictly speaking, -o only makes sense with -x,kientzle2004-07-172-0/+8
| | | | | | of course, but I make an effort to accomodate GNU tar scripts that use -o with -c (with a meaning that totally contradicts SUSv2) by only issuing a benign warning message in that case.
* Mention in the BUGS section that write and wall bogusly use the sender'stjr2004-07-172-1/+15
| | | | | LC_CTYPE setting instead of the receiver's when determining which characters are printable.
* Document incorrect handling of multibyte characters.tjr2004-07-175-5/+23
|
* Document the limitation that multibyte characters cannot be used astjr2004-07-171-1/+6
| | | | delimiters with the 's' and 'y' commands.
* Include <string.h> to get memset and strcmp prototype.johan2004-07-162-1/+3
| | | | | | Sort includes. This is now WARNS=2 clean, bump WARNS to keep it clean.
* Add support for multibyte characters.tjr2004-07-161-4/+9
|
* Avoid passing negative values to <ctype.h> functions on machines withtjr2004-07-161-3/+3
| | | | signed chars.
* Document incorrect handling of multibyte characters.tjr2004-07-161-1/+3
|
* Document incorrect handling of multibyte characters.tjr2004-07-151-1/+5
|
* Avoid passing negative values to isdigit() on machines with signed chars.tjr2004-07-151-5/+5
|
* Avoid passing negative values to isspace() on machines with signed chars.tjr2004-07-151-1/+1
|
* Respect locale settings from the environment.tjr2004-07-151-0/+3
|
* Avoid passing negative values to isspace() on systems with signed chars.tjr2004-07-151-1/+1
|
* Respect locale settings from the environment.tjr2004-07-152-0/+6
|
* Don't pass negative values into <ctype.h> functions on machinestjr2004-07-151-3/+3
| | | | with signed chars.
OpenPOWER on IntegriCloud