| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
possibly unsigned).
|
|
|
|
|
| |
both bsdtar and libarchive. Of course, this requires that bsdtar
have a version number. Let's call this 1.00, shall we? ;-)
|
| |
|
|
|
|
| |
mostly from: Tim J Robbins
|
|
|
|
| |
Thanks to: Andrey Chernov
|
|
|
|
|
|
|
|
| |
* Whitespace fixes
* Check some malloc calls
* Simplify long_help formatting
* Spell "LINUX" -> "linux"
* A few other miscellaneous style improvements
|
|
|
|
| |
Approved by: grehan (mentor)
|
| |
|
|
|
|
| |
strings in ``obsolete quotes''. Use Li and Ql where appropriate.
|
|
|
|
| |
right way to perform case-conversion.
|
|
|
|
|
| |
PR: bin/27604
Submitted by: David Xu <davidx@viasoft.com.cn>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- '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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
Thanks (and many apologies) to: Cristoph Mallon
|
|
|
|
| |
non-_KERNEL inclusions of pipe.h
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Thanks to: Tim J Robbins
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
|
| |
section. Re-add a sentence from the BUGS section that went missing in
the previous commit.
|
|
|
|
|
| |
the implementation of the -d option: we were skipping too many characters
when a non-alphanumeric character was encountered.
|
|
|
|
| |
been sorted with LC_COLLATE=C.
|
|
|
|
| |
Approved by: julian (mentor)
|
|
|
|
| |
variable and the default tape device.
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Add range-checking to argument of -b.
Thanks to: Tim J Robbins
|
|
|
|
|
| |
pointing to /usr/bin/bsdtar by default. To make it point to /usr/bin/gtar,
you can define WITH_GTAR.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
LC_CTYPE setting instead of the receiver's when determining which
characters are printable.
|
| |
|
|
|
|
| |
delimiters with the 's' and 'y' commands.
|
|
|
|
|
|
| |
Sort includes.
This is now WARNS=2 clean, bump WARNS to keep it clean.
|
| |
|
|
|
|
| |
signed chars.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
with signed chars.
|