8065 Commits

Author SHA1 Message Date
kientzle
a261d75a7b MFC: Enable -p by default for root, which seems to be what
most people expect.
2007-08-25 04:38:44 +00:00
kientzle
479b110eb7 Update bsdtar version to 1.9 to match libarchive.
At this point, bsdtar is identical to that in 7-CURRENT
except for one small behavioral change that I'm debating.
2007-08-25 04:35:21 +00:00
kientzle
0035d116be MFC: Use libarchive's new security checks (which are much faster)
instead of implementing them in bsdtar.
2007-08-25 04:33:13 +00:00
kientzle
e9b353931e MFC a comment. 2007-08-25 04:28:04 +00:00
kientzle
8162e7625f MFC: Don't try to store file body if there was a fatal error writing
the header.
2007-08-25 04:27:41 +00:00
kientzle
7bd343d4a0 MFC additional manpage comments to more widely publicize some
of bsdtar's key features.
2007-08-25 04:26:00 +00:00
kientzle
379f6c564c MFC --use-compress-program support. 2007-08-25 04:24:52 +00:00
kientzle
3210c203d5 MFC include guards. 2007-08-25 04:21:18 +00:00
kientzle
dbe00e79e2 MFC generic path comparisons. There was some old code
to ignore leading "./" that was there to allow us to
compare path names with strcmp().  Comparing pathnames
syntactically is a bit more complex than that, so
encapsulate it in a new utility function and use that instead.
2007-08-25 04:19:55 +00:00
kientzle
26f3bc4cf4 MFC corrected error handling on extraction. 2007-08-25 04:14:28 +00:00
kientzle
5b2f302121 MFC some miscellaneous casts to correct printing of
numerical UIDs, GIDs, and device numbers in tar -tv output.a
2007-08-25 04:11:47 +00:00
kientzle
67ca34cecd MFC refactored code to copy entry from one archive to another.
This is the code that implements the @<archive> interpolation
feature.
2007-08-25 04:08:45 +00:00
kientzle
c7d49f6377 MFC whitespace fixes. 2007-08-25 03:59:52 +00:00
kientzle
17d37094df MFC refactored platform configuration.
Separate platform-specific config into config_freebsd.h.
Changes to Makefile and bsdtar_platform.h to use this instead
of coding the FreeBSD configuration into bsdtar_platform.h
2007-08-25 03:58:25 +00:00
kientzle
f8775dae64 MFC corrected arg handling: -o is not the same as --no-same-owner
-o means different things depending on the mode in order to
     preserve both GNU and POSIX compatibility
   --no-same-owner always means the same thing, regardless of other options
2007-08-07 05:38:10 +00:00
kientzle
0ec9eae153 MFC two minor fixes:
* Message when exiting with a deferred error code.
  * Don't crash on bad use of -W
2007-08-07 05:34:38 +00:00
kientzle
9a81c1a075 MFC include guards and fill in extra definitions in bsdtar_platform.h. 2007-08-07 05:30:22 +00:00
kientzle
dae5cffde9 MFC include guards; add HAVE_GRP_H and HAVE_PWD_H to bsdtar_platform.h 2007-08-07 05:22:07 +00:00
kientzle
17f7e17e2d MFC include guards in bsdtar.c. Also, add HAVE_TIME_H to
bsdtar_platform.h so they actually work correctly.
2007-08-07 05:10:18 +00:00
kientzle
7e6d8214b3 MFC comments in bsdtar.c. 2007-08-07 05:05:03 +00:00
kientzle
f988cf8ca7 MFC matching.c 1.11: Guard includes to improve portability. 2007-08-07 04:55:21 +00:00
kientzle
a7f99471a8 MFC tree.c 1.8:
* Correct crash when files are removed during a traversal
 * Streamline some of the dir and link checks
 * Clarify comments
 * Guard header includes for portability

Update bsdtar_platform.h to reflect that FreeBSD does
indeed have <errno.h>.
2007-08-07 04:49:55 +00:00
kientzle
b738b64515 MFC 1.9: Fill in some missing casts. 2007-08-07 04:38:22 +00:00
delphij
ca0ae9d6dc MFC revision 1.4:
date: 2007/07/12 01:17:14;  author: delphij;  state: Exp;  lines: +7 -7
 - Simulate GNU gzip(1) behavior where full filename is
   being output in verbose mode when doing recursive[1].
 - Use better representation of S:

PR:		bin/114470
Submitted by:	Ighighi <ighighi gmail com> [1]
2007-08-06 02:31:25 +00:00
jhb
44ff2749c0 MFC: Restore netstat -M functionality for most statistics on core dumps.
One change in this patch relative to the changes in HEAD is that the
mroute statistics will still fallback to using libkvm on live kernels
if the sysctl fails.
2007-07-23 15:40:26 +00:00
jhb
33b25f53be MFC 1.37: Fix alignment of context switch traces. 2007-07-17 14:43:11 +00:00
delphij
8e18321b82 MFC: bzip2 1.0.4. 2007-07-11 07:04:07 +00:00
delphij
6de6b8a4ce MFC: less v406 2007-07-03 05:12:43 +00:00
delphij
674c5f6bbc MFC: Add -k option. 2007-06-29 01:45:18 +00:00
jhb
482018ae53 MFC 1.11 - 1.14: Add a new counter for SACK retransmits and expand TCP
counters from 9 digits to 12.
2007-06-26 00:05:36 +00:00
maxim
b3c9d0fb6d MFC rev. 1.17: do not warn if the process exits before we get its name. 2007-06-23 06:22:24 +00:00
bde
2c1a613795 MFC: all except 1.63:
1.59-1.62: already merged
1.63: removal of bridge(45) not merged
1.64: already merged
1.65: use uintmax_t
1.66: repair formatting to 79 columns
1.67: increase accuracy of timeouts and thus of per-interval counts
1.68: style fixes

Requested by:	kuriyama (1.66)

1.66 changes the whitespace in output.  Hopefully nothing depends on the
exact misformatting that it fixes.
2007-06-14 12:38:12 +00:00
kib
4b29bb4d0d MFC remnant of rev. 1.7. 2007-06-10 11:09:39 +00:00
dwmalone
bdc1ef1350 MFC: Fix some warnings by making things const, adding missing headers,
removing some unused variables and making a variable unsigned.
2007-06-10 07:04:09 +00:00
jhb
3de5fcab9c MFC: Make gcore(1) 64 bit safe. 2007-06-06 22:06:42 +00:00
le
7020b57e20 MFC:
Fix handling of filenames containing whitespace.

   PR:      bin/112860
2007-05-27 10:15:18 +00:00
des
61916655f2 MFC: remove T/TCP support 2007-05-24 16:15:32 +00:00
cperciva
c42cf872d1 MFC rev. 1.62: Complain about "tar -c /path/which/does/not/exist". 2007-05-24 09:27:50 +00:00
pav
a82413d873 MFC 1.24:
Expand documentation of -f option
2007-05-19 11:14:56 +00:00
maxim
eaf028c697 MFC rev. 1.75: fill the list of icmp types; make its size depend
on ICMP_MAXTYPE.
2007-05-14 18:09:00 +00:00
pav
2150a0ee6d MFC: v1.20
Document that uniq(1) limits input line length to LINE_MAX characters.
2007-05-13 11:50:32 +00:00
brian
0e2e096906 MFC: Add some more examples. It always takes me a long time to find the S
modifier (-t is ignored without it).
2007-05-08 22:45:45 +00:00
grog
5bc67052af RFC:
Add -A flag to adjust existing time stamps.
Print name by which program was started in usage() message.
2007-05-08 02:31:56 +00:00
rafan
d2d2482d63 MFC the top -j switch:
- Add a new 'j' switch and runtime option to toggle display jail id for
   each process.

 src/contrib/top/commands.c: 1.13
 src/contrib/top/machine.h: 1.8
 src/contrib/top/top.X: 1.18
 src/contrib/top/top.c: 1.21 and 1.22 (-j part)
 src/usr.bin/top/machine.c: 1.80

PR:		98489, 99631
Submitted by:	clsung
Approved by:	delphij (mentor)
2007-05-01 15:44:19 +00:00
yar
21c3f17ad1 MFC rev. 1.30:
Insert explicit space between the output fields to prevent them
  from running together when a field overflows.
2007-04-30 05:58:08 +00:00
dwmalone
131c23f425 MFC calendar from with -current and remove some undeeded break statements. 2007-04-29 20:14:19 +00:00
marcel
ba9aaebeb9 MFC rev. 1.41: Better handle the -F case.
PR: bin/101979
2007-04-20 22:53:20 +00:00
yar
c40caa7b4e Eliminate gratuitous difference from HEAD (style only). 2007-04-19 23:34:10 +00:00
yar
0f3c48b440 MFC 1.2-1.4:
Explain the change in sed behaviour WRT jumping over the 2nd address.
Add $FreeBSD$.

(Forgot to cvs up -j this file when doing MFC for the respective change
to the sed code.)
2007-04-19 23:29:05 +00:00
yar
3f2018d428 MFC:
Don't forget to close the range if we branched over its end
and had no chance to match it by the 2nd address precisely.
Otherwise the unclosed range would bogusly extend to the end
of stream.

Add a regression test.

Explain the decision in the `POSIX' file.

	1.44	src/usr.bin/sed/process.c
	1.2-1.4	src/usr.bin/sed/POSIX
	1.13	src/tools/regression/usr.bin/sed/regress.sh
	1.1	src/tools/regression/usr.bin/sed/regress.b2a.out
2007-04-19 23:19:43 +00:00