tron
addf1a0f97
Fix broken cpio(1) option handling:
...
- "cpio -i -t" should list the contents of a file, not extract it.
- Don't extract a file when only option "-d" is given.
Patch supplied by Paul Ripke in PR bin/26513.
2004-10-26 16:11:49 +00:00
jmc
79308267d4
For HOSTTOOL builds, just exclude the chroot support as it's not needed and
...
avoids having to platform check for fchroot(). Fixes PR#27336
2004-10-22 21:00:18 +00:00
wiz
7faf3dc435
English improvement (remove "be").
2004-10-20 23:48:01 +00:00
dsl
74db501288
Update date - before wiz complains
2004-10-17 18:53:59 +00:00
dsl
7404af49b7
Improve error reporting for invalid tar archives.
2004-10-17 18:51:29 +00:00
dsl
8317fe1276
Add an option --chroot to tar. Causes it to chroot(".") before doing
...
an extract. With -h this will cause existing absolute symlinks to be treated
as relative to the current directory.
Helps sysinst handle existing symlinks in the target system.
Remove 'L' from the usage (got spilt into 'h' and 'H' many moons ago)
Add 'S' to usage, and put into correct place in options list.
2004-10-17 18:49:55 +00:00
christos
211a72de86
Add WARNS=3
2004-10-16 18:07:16 +00:00
dan
e541469606
teach rcmd about getport move in rsh directory
2004-10-16 09:58:38 +00:00
christos
4fbd9df224
PR/27212: Greg A. Woods: Accept "-C <dirname>" inside filelists in addition
...
to "-C\n<dirname>".
But we are not making it the default output option as the patch suggests.
2004-10-10 22:05:26 +00:00
christos
1faaf9a7c2
PR/27213: Greg A. Woods: pax doesn't honour SIGPIPE when listing
...
But always exit, not just on SIGPIPE.
2004-10-10 22:03:08 +00:00
christos
d8cc5bab94
PR/27209: Greg A. Woods: typo in comment in pax/tty_subs.c
2004-10-10 21:54:24 +00:00
christos
37fed2119d
PR/27208: Greg A. Woods: pax must call options() before using syswarn()
...
or tty_warn()
2004-10-10 21:53:23 +00:00
enami
87aaf3d70d
Fix a bug introduced by previous commit. It breaks export command
...
with multiple arguments if one of them are already set. Fix PR#27155
and probably PR#27143.
2004-10-06 10:23:43 +00:00
dsl
5f9b910124
Save the length of each variable in the name table so that we can
...
compare the lengths and then use memcmp() in the search code.
Speeds up one of my scripts by a facter of 2.
Increase the size of the variable hash table.
Cuts down time for script to execute from 60 seconds to 10.
Move variable search into a new function to hide the implementation
from most of the code, new version is slightly smaller than old.
2004-10-02 12:16:53 +00:00
christos
d12e6436f9
Don't forget to FIOCLEX the internal copies of stdout,stderr,stddiag when
...
we invoke a subshell. Otherwise the executed command gets invoked with
17,18,19 open.
2004-09-28 16:07:01 +00:00
wiz
5107d92cf0
Bump date for -S support.
2004-09-27 07:41:54 +00:00
christos
60cf19985c
PR/19490: Julio Merino: Teach tar about --sparse, -S option.
...
Do it for cpio too.
2004-09-26 23:46:00 +00:00
christos
6885f6ba28
In GNU-tar mode, don't split filenames to prefix+name because GNU tar does
...
not honor it.
2004-09-26 22:49:05 +00:00
christos
d980bf3418
Keep track of the length of the gnu long name/link hack, so that
...
we can append to it. Modify the code so that file_write is re-entrant,
even in the gnu long name/link hack.
The old code assumed that the buffer already contained the necessary
blocks to satisfy the read file request that contained the long
filename. This is not always the case, specially when we are dealing
with pipes which do shorter reads, thus having more probability
that a long file name will fall across a buffer boundary.
To reproduce, create a tar archive with a lot of gnu-long-names
(pkgsrc/devel/libsigc++2 is a good example), do a tar -tf to get
a list of filenames, compress it and do a tar -tzf to get another
list of the filenames. Notice that the two lists differ.
2004-09-22 15:03:18 +00:00
christos
d6bc453dfc
update the comment that documents the fields initialized in the array below.
2004-09-22 14:52:00 +00:00
christos
448fdb0c85
fd can be -1 or -2 for the gnu long name/link hack. So check for >= 0
...
instead of -1 if we need to flush.
2004-09-22 14:51:12 +00:00
hubertf
2fa09966de
Change copyright to 2-clause BSD-copyright.
...
Changed with explicit permission of Thorsten Lockert (tholo sigmasoft com)
2004-09-15 19:45:17 +00:00
jdolecek
0e3af04f6a
use native syscallnames[] array for 'aout' and 'aoutm68k' "emulations" - it's
...
only used for syscall name <-> number translations, and the native array
is guaranteed to be superset of the former 'aout' and 'aoutm68k' arrays
this re-adds 'aoutm68k' support, and replaces change made in 1.14
g/c #include's which are no longer needed (including aout_syscalls.c), and
also add some comments for the emulations[] array
2004-09-12 11:05:43 +00:00
jdolecek
c2ce3ec2d5
constify
2004-09-12 09:25:59 +00:00
he
72ed8803cf
Remove references to aoutm68k_syscalls.c, following that file's removal.
2004-09-10 18:30:20 +00:00
wiz
89fb08a9ec
Bump date for removal of Kerberos option descriptions.
...
Remove dots at end of SEE ALSO.
2004-09-05 08:48:32 +00:00
manu
bd3e12fe2f
Kerberos support is broken in rcommands, thus making -K -k and -x options
...
unavailable. Remove theses options from the man pages (it won't be very
hard to bring them back if we fix kerberos one day)
2004-09-05 08:38:23 +00:00
wiz
86831d25f5
Bump date for laddr.
2004-08-23 17:36:19 +00:00
nathanw
3d720e58fb
Add a "laddr" keyword, analagous to "paddr". Useful for finding
...
struct pcb's.
2004-08-23 16:31:10 +00:00
dsl
7855867cc4
Use HW_PHYSMEM64 to avoid problem with > 2GB memory (and >4GB as well)
...
Fixes PR/23717 and PR/24092
2004-08-22 18:55:44 +00:00
tron
ed868bc7f4
Propery handle "cpio" archives where the last hardlink includes the
...
data of a file. This fixes PR bin/26514.
2004-08-22 16:46:18 +00:00
christos
b635c5b04a
Handle RESCUEDIR
2004-08-19 23:05:00 +00:00
christos
79455d444d
Handle RESCUEDIR
2004-08-19 23:00:22 +00:00
christos
287d684b47
Deal with RESCUE
2004-08-19 22:31:38 +00:00
christos
ea369b9669
Deal with RESCUEDIR
2004-08-19 22:25:49 +00:00
jschauma
1a12f82f4b
If a files date is any time in the future (not six months or more),
...
use "date "+%b %e %Y"" format. This is what SUSv3 says.
Ok jdolecek, dsl
2004-08-09 20:14:54 +00:00
jschauma
6734ab72b9
Clarify meaning of '-c' flag by using similar wording as for '-u' flag.
2004-08-06 03:17:19 +00:00
yamt
401d92a0c0
indent fix for the previous (ar_io.c rev.1.43)
2004-08-02 10:20:48 +00:00
simonb
73cc67cb1d
For the "lid" keyword, change ULONG to INT32 since it's a 32bit type.
...
From Nicolas Joly in PR bin/26452.
2004-07-28 07:48:22 +00:00
yamt
42ad308b8b
for copy mode, show more meaningful infomation on SIGINFO.
2004-07-18 20:58:36 +00:00
enami
56ab99cb0c
Drop LSBs when denominator is big.
2004-07-17 00:29:08 +00:00
christos
f6f36c8db2
PR/26339: Pavel Cahyna: the 'fc' command can crash non-interactive ksh
...
Produce an error message instead.
2004-07-16 18:39:18 +00:00
christos
71f73d1673
- Grr! unterminated buffer string in exclude destination buffer
...
- fix isfoo() ctype macros to take unsigned char.
2004-07-14 12:41:36 +00:00
seb
cf788c3115
Add new builtin `wordexp' to support wordexp(3).
...
From FreeBSD.
Provided in PR lib/26123.
Approved by kleink@.
2004-07-13 15:05:59 +00:00
christos
5dd9099216
PR/25699: David Laight: sh(1) hangs opening a named pipe as stdin for
...
background process
This happens because we vfork, and then open a named pipe with O_RDONLY
and block in the child. We avoid this, by opening the file with O_NONBLOCK,
and then reset it if we are vforked. XXX: this is an ugly fix.
2004-07-08 03:57:33 +00:00
mycroft
37b5b92c9f
Truncate the prompt if too long. Fixes PR 24674, but not with the patch from
...
there.
2004-07-07 19:46:57 +00:00
mycroft
f662a744b6
Cleanup of ksh memory handling from OpenBSD, via Stefan Krueger in PR 24962.
...
Should also fix:
PR 8153
PR 13301
PR 15256
PR 25084
2004-07-07 19:20:09 +00:00
enami
e9bd9c26d8
Remove now unnecesary/incorrect cast.
2004-07-07 01:14:13 +00:00
enami
9bcbd6d9c6
- Remove unnecessary empty line.
...
- Wrap long line.
2004-07-07 01:10:58 +00:00
martin
dc1011f1c9
Available block count may be negative - so make the calculation signed.
...
This avoids output like:
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd1a 11799 11276 9223372036854775741 100% /boot
2004-07-04 15:31:50 +00:00