Tim Kientzle
f0e6a2b96d
Minor corrections to error handling and user notifications:
...
* Move format/compression reporting to end of output, since
we don't always know the input format until then.
* Set bsdtar exit value to 1 if any file could not be restored.
* Generate gtar-style warning when stripping leading '/' characters.
* Warn when removing symlinks.
2004-05-27 04:35:36 +00:00
Tim Kientzle
8df3c224c0
Provide framework for exiting with non-zero value on non-critical errors.
2004-05-27 04:30:59 +00:00
Pawel Jakub Dawidek
7d3940bb67
Use humanize_number(3) to format sizes into a human readable form.
2004-05-24 22:22:29 +00:00
Pawel Jakub Dawidek
8cab54e9a8
Mark du(1) as WARNS6 clean.
...
Tested on: alpha, amd64, i386, ia64, sparc64
2004-05-24 21:31:30 +00:00
Stefan Farfeleder
8b061e144e
Include <string.h> for prototypes of various string functions.
...
Approved by: das (mentor)
2004-05-24 12:44:00 +00:00
Stefan Farfeleder
40905e9049
Include <netinet/in.h> for ntoh*() and hton*() prototypes.
...
Approved by: das (mentor)
2004-05-24 11:59:17 +00:00
Josef El-Rayes
df38fbe11f
Add localized calendar file for holidays in Austria.
...
Approved by: le
2004-05-23 13:22:01 +00:00
Tim Kientzle
26eddc7f41
Add --no-same-owner as a synonym for -o.
...
Note that bsdtar's -o (which follows SUSv2) is not the same as GNU tar's -o.
In GNU tar, -o and --no-same-owner are not synonyms.
Pointed out by: Kris Kennaway (required by xpenguins port)
2004-05-22 17:49:54 +00:00
Robert Watson
7d8c7fe102
Add a "-r" flag to ktrdump(1) to print relative timestamps when used
...
with "-t" rather than absolute timestamps. This allows the reader
to get a better sense of latency between events, such as time to
schedule an interrupt thread from time the interrupt occurred. Assert
a copyright on ktrdump.c since I seem to be modifying it more than I
thought.
2004-05-22 08:26:10 +00:00
Robert Watson
7ddc893717
Add a quiet mode to ktrdump(1): if the "-q" flag is used, don't print
...
the pretty text header on top of the output. Simplifies feeding the
results of tracing into a script for mechanical processing.
2004-05-21 21:24:58 +00:00
Robert Watson
dd6cf019f3
When the 'f' flag is passed to ktrdump(1), use 40 characters for the
...
"file and line" field consistently; previously, a 32-character field
length was used for the table header, which resulted in the header
not lining up with the table.
2004-05-21 21:15:48 +00:00
Tim Kientzle
c5ce4977e6
Add --dereference as a synonym for -H
...
Pointed out by: Kris Kennaway (unbreaks nspr port build)
2004-05-21 18:40:32 +00:00
Hiten Pandya
151e36fc65
Remove unneeded lseek(2) hack to position past the 2GB point,
...
use fseeko(3) instead.
This commit fixes breakage when `lastcomm matchstring` is run.
PR: bin/66765, bin/64568
Submitted by: Dan Nelson <dnelson at allantgroup.com>
2004-05-20 19:25:27 +00:00
David Malone
838c00236b
Fix a couple of warnings:
...
1) Missing include for declaration of time conversion functions.
2) Avoid a couple of alignment warnings on 64 bit arches by memcpying the
things pointed to by caddrs into variables of the right type.
Bump WARNS to 6 while I'm here.
2004-05-19 21:34:52 +00:00
David Malone
f2ab33b6eb
Add missing %s so that all of the usage message gets printed.
...
Bump WARNS to 6 while I'm here.
2004-05-19 21:06:36 +00:00
Lukas Ertl
be28a6af38
Fix integer overflow in the file size output when dealing with
...
large files (i.e. DVD images).
Reviewed by: des@
2004-05-19 11:07:30 +00:00
Ruslan Ermilov
a12d0a1aee
Added pgrep to the SYNOPSIS.
...
Fixed SYNOPSIS.
Fixed markup nits.
2004-05-19 10:46:56 +00:00
Ruslan Ermilov
fdc1ec368d
Clean up language and markup.
2004-05-19 10:45:40 +00:00
Ruslan Ermilov
607e48e7b5
Language and markup polishing.
2004-05-19 10:44:24 +00:00
Ruslan Ermilov
79e447559c
Bumped the document date.
2004-05-19 09:54:14 +00:00
Ruslan Ermilov
47a49bc2b5
Bumped the document date.
...
Fixed the grammar nit.
2004-05-19 09:53:41 +00:00
Ruslan Ermilov
c548db0353
Bumped document date.
...
Fixed markup nit.
2004-05-19 09:53:03 +00:00
Ruslan Ermilov
0d25a5d896
Bumped document date.
...
Fixed the grammar nit.
2004-05-19 09:52:40 +00:00
Ruslan Ermilov
af52678ebd
Markup nits.
2004-05-19 09:51:58 +00:00
Ruslan Ermilov
032a157f2b
Bumped document date.
...
Dealt with hard sentence breaks and whitespace at EOL.
2004-05-19 09:51:31 +00:00
Ruslan Ermilov
fc7589061d
Fixed document date.
2004-05-19 09:49:54 +00:00
Ruslan Ermilov
54874bb6b9
Bumped document date.
...
Fixed a bunch of hyphen misspellings.
Fixed one warning.
2004-05-19 09:49:37 +00:00
Ruslan Ermilov
4bdd89ba98
Restore part of the word that got (accidentally) removed.
...
Removed whitespace at EOL.
2004-05-19 09:46:37 +00:00
Ruslan Ermilov
3c12a2e0d2
Markup nits.
2004-05-19 09:45:46 +00:00
Ruslan Ermilov
6f9c5e40fa
Bumped document date.
...
Removed hard sentence break.
2004-05-19 09:44:31 +00:00
Tim Kientzle
04e2d02e20
Default is to restore timestamps, even when operating as root. <sigh>
2004-05-19 01:21:11 +00:00
Tim Kientzle
873e38290a
Fix a segfault when looking up a non-existent group.
2004-05-18 23:40:25 +00:00
Ruslan Ermilov
aa588a66d1
Bump document date on behalf of the -e option.
...
Spell "ID" correctly.
2004-05-18 20:45:32 +00:00
Ruslan Ermilov
b388c4ac50
Bump document date on behalf of the -E option.
2004-05-18 20:42:36 +00:00
Ruslan Ermilov
f18a58b589
Added -u to the SYNOPSIS.
2004-05-18 20:40:37 +00:00
Ruslan Ermilov
f0085ed625
Bump document date on behalf of the -u option.
2004-05-18 20:38:43 +00:00
Ruslan Ermilov
c9a74f6a2b
Bump document date on behalf of the -M option.
2004-05-18 20:36:54 +00:00
Peter Wemm
f7dd47a8d1
Build/install gprof on amd64 as well, after repocopying the MD bits.
...
Not that it has anything to process yet, but that comes next.
2004-05-18 18:05:19 +00:00
Tim Kientzle
656e70b49a
Accept (but ignore) GNU tar's -B option. bsdtar never
...
needs it, but it does no harm for people to specify it.
2004-05-18 17:16:55 +00:00
Stefan Farfeleder
ec18ee18ad
Don't depend on NULL's expansion being a pointer, cast it before it is passed
...
to variadic functions.
Approved by: das (mentor)
2004-05-18 15:53:58 +00:00
Tim Kientzle
a25502627d
Set errno to 0 before calling getpwuid/getgrgid, so that error
...
messages will be displayed only when there is, in fact, an error.
2004-05-17 18:29:12 +00:00
Tim Kientzle
9d77c5f29c
Speed up safe_fprintf by copying to a temp buffer, then writing
...
blocks at a time, rather than using putc().
2004-05-17 07:35:52 +00:00
Tim Kientzle
088bdb251d
Propagate struct bsdtar down into a lot more places.
...
Move global progname variable into struct bsdtar.
2004-05-17 05:44:53 +00:00
Tim Kientzle
7283cd6959
Refactor name caching to use a common piece of code for uname_cache and
...
gname_cache. Cache negative lookups to dramatically improve performance
building archives containing nonexistent uid/gid.
2004-05-17 05:02:39 +00:00
Tim Kientzle
4a07f42b98
Make symlink protection a bit more useful:
...
* Remove terminal symlinks so they can be replaced.
* If -U, remove intermediate symlinks as well
* Otherwise, refuse the extraction
2004-05-17 03:33:06 +00:00
Tim Kientzle
dcec34670d
Update manpage to track new security features.
2004-05-17 03:19:31 +00:00
Stefan Farfeleder
a752604477
Remove spurious semicolons. Outside of functions they are actually errors but
...
GCC doesn't warn about them without -pedantic.
Approved by: das (mentor)
PR: 56649
Reviewed by: md5
2004-05-16 22:08:17 +00:00
Oliver Eikemeier
9c61111db8
snafu, exchanged the descriptions of -maxdepth and -mindepth.
...
Noticed by: ru
2004-05-16 10:35:14 +00:00
Olivier Houchard
bb52bd2f06
Insert "arm" between "amd64" and "powerpc"
...
Requested by: bde
2004-05-14 23:08:52 +00:00
Bruce Evans
6ff9ebfdc9
Fixed total disorder of MD includes.
...
Disorder buffer overflowed by: arm commit
2004-05-14 21:05:35 +00:00
Joerg Wunsch
482b206bf5
Bump the .Dd value.
...
Update xrefs to more contemporary items.
Requested by: ru, green
MFC after: 1 week
2004-05-14 19:29:39 +00:00
Joerg Wunsch
be06d37c18
When I wrote this man page more than 5 years ago, I simply didn't
...
understand the true symmetric nature of Enigma, so my description of
``automatically detects that the input is encrypted'' was simply
wrong. Replace that by a more accurate description of why feeding the
ciphertext again into the engine will decrypt it.
MFC after: 1 week
2004-05-14 18:46:16 +00:00
Olivier Houchard
63b689127c
Use four spaces instead of tab for second level indentation.
...
Requested by: ru
2004-05-14 14:50:55 +00:00
Olivier Houchard
bc67fdeab2
Define PTRDIFF_IS_LONG and SIZEOF_IS_ULONG for arm.
2004-05-14 13:44:36 +00:00
Olivier Houchard
361af5b54b
Some arm bits for gprof.
2004-05-14 13:44:04 +00:00
Olivier Houchard
355114cf96
Do not build truss on arm.
2004-05-14 13:43:18 +00:00
Oliver Eikemeier
d79829af6c
-maxdepth and -mindepth are global variables
...
PR: 66613
Approved by: ru
MFC after: 3 days
2004-05-14 12:58:13 +00:00
Ruslan Ermilov
01d3e1c00d
Output style nit.
2004-05-12 07:36:59 +00:00
Olivier Houchard
72d8d1c7f3
Do not attempt ro read more than sizeof(buf) from stdin.
2004-05-10 15:52:16 +00:00
Crist J. Clark
e075483771
It was pointed out[0] that ctags(1) uses some potentially dangerous
...
system(3) calls where user-supplied data is used with no sanity
checking. Since ctags(1) is not setuid and is not likely to be used
in a privileged situation, this is not a big deal. However, the
fix is relatively easy and less ugly than the current code, let's be
safe. (I'm sure there are about 2^134 other system(3) calls like this
out there.)
[0] On freebsd-security by Roman Bogorodskiy <bogorodskiy@inbox.ru>
with subject "ctags(1) command execution vulnerability."
MFC after: 3 days
2004-05-07 19:44:40 +00:00
Stefan Farfeleder
a2c1b13f5c
Use a proper protoype to declare interp() and move it to tip.h. Fix an
...
invocation with a wrong number of arguments.
Approved by: das (mentor)
2004-05-06 13:25:09 +00:00
Tim Kientzle
81f3488f97
Add --unlink and --unlink-first synonyms for -U
...
Make indentation of tar_longopts array more consistent.
2004-05-05 21:06:37 +00:00
Stefan Farfeleder
dc34130a70
Add my birthday.
...
Approved by: das (mentor)
2004-05-05 13:11:33 +00:00
Tim Kientzle
bf0c356cdf
Contrariwise, Linux sys/stat.h doesn't define mode_t and friends,
...
even though POSIX requires it. <sigh>
2004-05-04 21:40:09 +00:00
Tim Kientzle
6e8b30b778
Include local copies of fts.c and fts.h to be used ONLY on non-FreeBSD
...
systems. The fts.h here is an exact copy of include/fts.h (except for
an initial explanatory comment and the revision tags, of course). The
fts.c here is slightly modified from lib/libc/gen/fts.c so it can
compile correctly on non-FreeBSD systems.
2004-05-04 17:21:01 +00:00
Robert Watson
300b40af25
Add "-M" argument to id(1), which permits the id command to be used
...
to print the MAC label of the current process. "-M" selected as that's
what is used in Trusted IRIX.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, McAfee Research
2004-05-03 22:50:23 +00:00
Tim Kientzle
9644b0783f
For portability, don't rely on libc's strmode(3). <sigh>
2004-05-03 21:05:59 +00:00
Tim Kientzle
ce722a01be
Correct copy/paste error in Linux nodump support.
...
Thanks to: Juergen Lock for his continuing patience
while I botch his patches.
2004-05-03 16:56:42 +00:00
Tim Kientzle
f1fe72c1cc
Style: Use single tab after #define
2004-05-02 22:58:18 +00:00
Tim Kientzle
732db834d2
More of Juergen Lock's patches for Linux.
...
(fflags support on Linux, nanosecond timestamp portability, enable
64-bit file offsets)
2004-05-02 18:10:35 +00:00
Tim Kientzle
aef39ef75f
More style fixes, per bde.
2004-05-02 17:54:57 +00:00
Sean Kelly
080f4020a3
- style(9) improvements courtesy of bde.
...
- Revise the former commit to behave nicer on filenames containing
multiple '.' characters.
- Prevent the generation of macros starting with "__".
2004-05-02 07:07:54 +00:00
Sean Kelly
10c546c43f
Teach rpcgen to generate .h files properly when the input filename contains
...
characters that can't be used in preprocessor macros.
PR: bin/66156
Submitted by: K S Braunsdorf <rpc@ksb.npcguild.org>
2004-05-02 01:55:23 +00:00
Tim Kientzle
020287607f
A security issue: An archive containing a symlink to another
...
directory, then a file with that symlink as a prefix can drop a file
outside of the current directory, which can be a security hole.
Plug this hole by refusing to extract files if a prefix of the
pathname is a symlink. The -P option disables this check.
2004-05-02 00:43:02 +00:00
Tim Kientzle
2622aab4ae
Style fixes, most suggested by bde.
2004-05-01 21:47:31 +00:00
Sean Kelly
42249c7f31
Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator
...
precedence. Add short-circuit evaluation.
PR: bin/60914
Reviewed by: petef
Discussed with: jeff, petef
2004-05-01 03:59:43 +00:00
Sean Kelly
15ea803975
m4 script to test the functionality of math operators in eval().
...
Submitted by: K S Braunsdorf <sed@ksb.npcguild.org>
2004-05-01 03:27:05 +00:00
Sean Kelly
528d980cc0
A new version that does exponents and lots of other neat things. Update
...
from the original author of math.sed.
Submitted by: K S Braunsdorf <sed@ksb.npcguild.org>
2004-05-01 02:15:58 +00:00
Tim Kientzle
231a973125
Speed up hardlink detection by using a self-sizing hash
...
table rather than the old linear list search.
On my "hardlink detection torture test", this reduced
user time from 4700 seconds down to 4.2 seconds
and wallclock time from 1:24:48 down to 1:08.
(Yes, that's over one THOUSAND times reduction in user time. ;-)
In the worst case, the new code doubles peak memory usage,
though it could actually reduce memory usage in many cases.
MFC after: 1 week
PR: misc/42167, bin/51151
2004-04-30 18:17:51 +00:00
Tim Kientzle
6c6b3d9aa5
-U is now implemented. (It's been recognized by bsdtar for a while;
...
now libarchive actually supports the underlying request.)
2004-04-29 05:22:13 +00:00
Tim Kientzle
d7837b06fe
Refuse to extract entries with '..' in pathname.
...
Pointed out by: David Schultz
2004-04-28 18:53:07 +00:00
Tim Kientzle
0c27da5f82
Remove information about specific formats; replace with a
...
reference to libarchive-formats(5).
2004-04-28 04:43:57 +00:00
Tim Kientzle
749029a437
Update write.c to follow recent API changes to libarchive.
...
Also, bump up the default copy buffer from 8k to 64k
to improve performance.
2004-04-26 23:39:17 +00:00
Mike Silbersack
fa126c2954
Add the bad reset statistic (corresponds to tcp_input.c rev 1.235)
2004-04-26 02:57:33 +00:00
Tim Kientzle
7e02198e95
Fix username/groupname cache so it returns a name that
...
was just looked up by get{pw,gr}id(). Otherwise, it
returns a NULL name unless it's already in the cache.
Credit to Juergen Lock.
2004-04-23 16:33:51 +00:00
Tim J. Robbins
6d4ba9cd4e
Print fork statistics with %u as they are unsigned quantities.
...
PR: 65889
Submitted by: Ken Stailey
2004-04-23 13:10:29 +00:00
Tim Kientzle
fe44171ebd
Eliminate a redundant call to archive_entry_set_pathname()
2004-04-21 05:16:28 +00:00
Dag-Erling Smørgrav
47d91ba394
Clarify and correct some compatibility notes.
...
PR: 65822
2004-04-21 00:42:55 +00:00
Brian Feldman
59fb7e543f
Treat kevent(2) returning an error EINTR as the non-error it is.
2004-04-20 22:04:12 +00:00
Tim Kientzle
97c4c5308b
Allow brave souls to install bsdtar as the
...
default "tar" command by defining WITH_BSDTAR.
Note: "gtar" and "bsdtar" commands both exist regardless.
2004-04-19 22:09:04 +00:00
Olivier Houchard
ec8ffccbdc
Handle window resizing better.
...
Submitted by: Cyril Nguyen Huu
Obtained from: OpenBSD
2004-04-19 21:37:29 +00:00
Marius Strobl
d3770a0c15
Add my birthday.
...
Approved by: marcel (mentor)
2004-04-18 01:05:55 +00:00
Tim J. Robbins
6c488bf29c
Restore old value of LESSKEYFILE_SYS.
2004-04-17 07:48:21 +00:00
Tim J. Robbins
55e19c81cb
Regenerate with less 381 configure script.
2004-04-17 07:46:08 +00:00
Tim Kientzle
cc52bf3428
--help is only supported if you have getopt_long().
...
This allows bsdtar to compile on FreeBSD 4.x.
2004-04-16 03:50:04 +00:00
Tim Kientzle
855e109158
As suggested by Julian Elischer, use a self-sizing hash
...
table for the hardlink cache. This dramatically improves
performance when archiving millions of hardlinked files.
While I'm here, clean up some style bugs (per Bruce Evans)
and clarify some comments.
2004-04-15 22:37:54 +00:00
Bruce Evans
929789b42c
Include <sys/proc.h> instead of depending on namespace pollution in
...
<sys/user.h> for the definition of TDF_SINTR. Fixed anachronous
spelling of TDF_SINTR in a comment
Demangled VCS ids. There were 2 misplaced copies of $FreeBSD$ and of
the include before it. The vendor id infrastructure was edited.
Fixed the only other remaining style bug since rev.1.1 (expansion of
struct member names made a line too long).
2004-04-14 09:34:17 +00:00
Bruce Evans
a1541efa63
Include <sys/proc.h> for the definition of PS_INMEM instead of
...
depending on namespace pollution in <sys/user.h>.
Reduced nearby include messes.
2004-04-14 09:01:56 +00:00
Tim Kientzle
17834543c8
A simple cache of uid->uname lookups and gid->gname lookups eliminates
...
almost 1/2 of the CPU time required to create an uncompressed archive
and makes a noticable reduction in wallclock time.
2004-04-14 00:40:54 +00:00
Tim Kientzle
c7141791f3
When all the links to a file have been dumped, don't forget
...
to free() the memory used to store the filename.
2004-04-13 23:50:48 +00:00
Tim Kientzle
907d74bb26
Eliminate a lot of malloc/free calls by using
...
a stack-allocated buffer for safe_fprintf formatting.
Only if the result is too large do we resort to malloc.
2004-04-13 23:49:02 +00:00
Tim Kientzle
de60e4436b
Manpage changes suggested by Irina Liakh.
...
Also, add -h as a synonym for -H, for Linux Standards Base compliance.
2004-04-13 19:45:55 +00:00
Luigi Rizzo
0b46c08590
Replace ROUNDUP/ADVANCE with SA_SIZE
2004-04-13 11:24:43 +00:00
Ruslan Ermilov
57d9d1d762
The .DEFAULT target with no commands caused a null pointer dereference.
...
PR: bin/63405
Obtained from: NetBSD
2004-04-12 20:05:11 +00:00
Tim Kientzle
5316058f3c
Style fixes
...
Pointed out by: bde
2004-04-12 18:06:07 +00:00
Ruslan Ermilov
07b80458ef
Document the new .warning directive.
2004-04-12 18:00:54 +00:00
Ruslan Ermilov
dba067b170
Added the new .warning directive.
...
Submitted by: Cyrille Lefevre
2004-04-12 17:57:51 +00:00
Ruslan Ermilov
e16552014d
Show link-level multicast packet counters with the -a option.
2004-04-12 15:00:48 +00:00
Ruslan Ermilov
bce2e7c8bb
Fixed alignment of multicast addresses when printing that got
...
broken in previous revision.
2004-04-12 09:44:42 +00:00
Tim Kientzle
4cbbc3a35e
Add DPADD to Makefile (thanks to Andrey for pointing this out).
...
Generally clean up Makefile, remove dmalloc references from source
(there are better ways to do this than pollute the FreeBSD src tree).
2004-04-12 00:13:23 +00:00
Maksim Yevmenkin
2f122b6e8a
Use uint instead of u_int
2004-04-09 23:26:16 +00:00
Maksim Yevmenkin
4ae439a316
Make sure Bluetooth stuff can be compiled on amd64
...
Submitted by: ps
2004-04-09 23:01:42 +00:00
Maxime Henrion
1aefe0e32e
Backout previous commit. It seems this comment applied to something
...
else than I thought, and thus really needs to go away.
Noticed by: ru
2004-04-09 17:30:26 +00:00
Maxime Henrion
92375a1cb9
Reintroduce a comment that was wrongly removed in revision 1.34.
2004-04-09 14:19:12 +00:00
Tim J. Robbins
149a123b34
Improve robustness of multibyte character handling (-m option), and
...
simplify the read buffering now that we can feed partial multibyte
characters to mbrtowc().
2004-04-09 11:17:29 +00:00
Tim Kientzle
f6f4796250
Allow arguments to appear in any order.
...
While I'm here, add a couple of extra sanity-checks to
the argument parsing (reject -j -z, for instance) and
update the docs a bit.
Requested by: most everyone ;-)
2004-04-08 19:37:01 +00:00
Tim Kientzle
54b3a82544
Document the newly-implemented -T option.
2004-04-08 06:21:03 +00:00
Tim Kientzle
330924f9bd
Add support for -T option on create.
...
(Required by pkg_create.)
2004-04-08 06:12:01 +00:00
Tim Kientzle
4102998278
Correct signature in alternative stub implementation of setup_acls()
2004-04-07 17:43:48 +00:00
Tom Rhodes
53e87059f0
Add -acl and a small blurb about it to the options list.
...
Update date.
2004-04-07 14:48:30 +00:00
Tim Kientzle
1eb80e1673
Archive both access and default ACLs.
2004-04-06 23:08:31 +00:00
Tim Kientzle
e813a37f91
Connect bsdtar to the build.
2004-04-06 17:04:38 +00:00
Dag-Erling Smørgrav
3d49384208
Workaround for servers that ignore byte ranges when using chunked
...
encoding.
MFC after: 3 days
2004-04-06 12:24:26 +00:00
Tim Kientzle
d7fe3b4f52
Initial commit for bsdtar.
2004-04-05 21:32:18 +00:00
Ruslan Ermilov
78f104db9c
Unbreak compilation on RELENG_4.
...
Submitted by: des
2004-04-05 17:02:08 +00:00
Dag-Erling Smørgrav
3a0ad2fe74
Sort #includes, remove <sys/types.h> (made redundant by <sys/param.h>),
...
add <signal.h> (needed for sigaction())
Noticed by: Stefan Farfeleder <stefan@fafoe.narf.at>
2004-04-05 06:16:48 +00:00
Philippe Charnier
79a32d2730
Be consistant while reporting error conditions.
2004-04-04 19:17:38 +00:00
Philippe Charnier
75fb4a5304
Add FBSDID. Use %ld to printf(3) a long (even if the number is small).
2004-04-04 19:11:01 +00:00
Philippe Charnier
d6d62d8d63
Add FBSDID. Do not dot terminate errx(3) string.
2004-04-04 18:56:53 +00:00
John-Mark Gurney
9d2e2dd933
I can't believe that we had the Queen's birthday but not the King's...
...
Since my wife is Thai, she knows the proper date.
2004-04-04 07:31:35 +00:00
Bosko Milekic
9c5d31dff2
Give find(1) the option -acl to locate files with extended
...
ACLs. This is similar to what ls(1) can do. It is handy to
have it so that it can be used in conjunction with
"-exec setfacl {} \;" (to find(1)), among others.
This is the submitter's patch, but slightly modified.
PR: bin/65016
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
2004-04-03 17:10:04 +00:00
Colin Percival
734938becc
From the list of calendars, remove some duplicate entries which were added
...
as a result of mis-sorting.
PR Submitter wanted to see a sorted list of non-national holidays followed
by a sorted list of national holidays; I'm not going to do this, because I
don't think we want to get into the "what is a nation?" debate.
PR: docs/64848
Submitted by: Ulrich Spoerlein <q@uni.de> (approximately)
MFC after: 3 days
2004-03-30 18:28:36 +00:00
Garance A Drosehn
c3f750cfbf
Use KERN_PROC_PROC instead of KERN_PROC_ALL on the call to kvm_getprocs(),
...
so we get one line per process instead of one for each kernel-thread.
Noticed by: ache & tjr
2004-03-30 15:10:50 +00:00
Garance A Drosehn
13ea8563af
Add a cross-reference to pkill(1), now that pkill is hooked up to the build.
2004-03-27 23:45:33 +00:00
Garance A Drosehn
c3e741f776
bde also tells me that he is confident that P_SYSTEM will not work
...
any better on 4.x than it does on 5.2. If that's true then there
is no point to the __FreeBSD_version check that I had added.
2004-03-27 06:49:57 +00:00
Garance A Drosehn
f56b4f2de1
Hook pkill' (and thus
pgrep') to the standard buildworld.
...
Reviewed by: freebsd-arch
2004-03-27 05:44:55 +00:00
Garance A Drosehn
b643171bdb
Some style(9)-ish improvements, courtesy of bde.
...
Noticed by: bde
2004-03-27 05:40:31 +00:00
Garance A Drosehn
3d7fb10b5f
Remove the _PATH_DEVNULL setting for "swapf". From the kvm_open(3)
...
man page: The swapfile argument is currently unused.
Noticed by: ru
2004-03-26 19:29:57 +00:00
Garance A Drosehn
47fc3041b2
Remove the NEED_KMEM support meant for FreeBSD 3.x. This base-system
...
version isn't going to be committed to that branch...
Noticed by: des
2004-03-26 18:02:40 +00:00
Garance A Drosehn
d5ddb9bf52
Switch to checking P_KTHREAD instead of P_SYSTEM when deciding what
...
"system processes" to always ignore. Based on my testing with `-D',
I am pretty sure this is what we want for 5.x-current. If my thinking
is wrong, this also makes it easier to switch to a different check.
2004-03-26 17:51:49 +00:00
Ruslan Ermilov
ab82970ed2
Properly document the -M and -N options.
2004-03-26 11:01:45 +00:00
Ruslan Ermilov
376d460cff
Correct the description of the -N option.
2004-03-26 10:48:35 +00:00
Ruslan Ermilov
f9a480abb1
Avoid the manpage layering violation and low-level implementation
...
details of libkvm, and just tell what the getbootfile(3) function
will return, by using the text from netstat(1) and dmesg(8).
2004-03-26 08:54:27 +00:00
Ruslan Ermilov
411ec5a7be
Correct the description of options -N and -M to match reality.
2004-03-26 08:47:01 +00:00
Ruslan Ermilov
73bfeb89ca
Apply style.Makefile(5).
2004-03-26 07:44:49 +00:00
Garance A Drosehn
f72f4d3a9c
Send those -Debug messages to stderr, not stdout...
2004-03-26 02:20:52 +00:00
Garance A Drosehn
c44047c7a8
Add a debugging option, as I don't understand something that I'm seeing.
...
(this is a probably temporary option, and is not to be documented)
2004-03-26 01:43:19 +00:00
Garance A Drosehn
5def7269c2
Remove a redundant check against mypid (the check is done later, in
...
the "Take the appropriate action" section).
Obtained from: the sysutils/pkill port
2004-03-26 01:30:15 +00:00
Garance A Drosehn
eb6d801134
Add a cast to get this to compile with WARNS=5 on sparc64. This is
...
needed because off_t == __int64_t, while size_t == __uint64_t. This
also compiles with WARNS=5 on amd64, but I haven't tested the other
platforms yet.
2004-03-26 00:36:27 +00:00
Garance A Drosehn
ae1a248822
Fixes so this will compile with WARNS=5 on i386.
2004-03-26 00:15:20 +00:00