summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2004-01-11g/c SDEADjdolecek
2004-01-11Fix typo.wiz
2004-01-11Bump date for previous; |fmt; remove trailing white space.wiz
New sentence, new line.
2004-01-11Adjust comment to indicate what this code is actually useful for, and thattls
it's not really "cheap".
2004-01-11UFS->FFStls
2004-01-11Change behaviour of -P option to conform generally to DoD 5220.22-Mtls
standard. This change inspired by Apple's "Secure Empty Trash" functionality in MacOS 10.3. However, it is important to understand that this change does not -- and can not -- actually achieve conformance to the current revision of the standard. To quote the manual page: The -P option attempts to conform to U.S. DoD 5220-22.M, "National Indus- trial Security Program Operating Manual" ("NISPOM") as updated by Change 2 and the July 23, 2003 "Clearing & Sanitization Matrix". However, unlike earlier revisions of NISPOM, the 2003 matrix imposes requirements which make it clear that the standard does not and can not apply to the erasure of individual files, in particular requirements relating to spare sector management for an entire magnetic disk. Because these requirements are not met, the -P option does not conform to the standard. This also makes the -P option a *lot* more expensive than it used to be. It used to overwrite with 0xff, overwrite with 0x00, overwrite with 0xff, with an fsync after each write. Now it overwrites with a random character, overwrites with 0xff, overwrites with 0x00, reads to validate the 0x00 overwrite, then overwrites with random data -- calling sync() after every operation in an attempt to force seeks that will clear the data from the cache of disks that lie about whether data has been committed to the platters. Also, the file's opened with O_SYNC|O_RSYNC to cause metadata updates on every read/write, which should cause still more seeks. This is better than it used to be, but it's by no means adequate if you have data you really don't want read by an adversary who can pull the disk apart.
2004-01-10Replace hard to understand wording with a differentwiz
one from further down in the same page. Suggested by jmc@openbsd.
2004-01-08comma-separated with a "-" in between. From Jared Yanovich via jmc@openbsd.wiz
2004-01-06Simplify previous; if F_CLOSEM fails, just fall back doing the old thing.christos
Calling stderror here is not safe, because we might have not setjmp()'ed yet.
2004-01-05Homogenize usage messages: make the 'usage' word all lowercase, as this seemsjmmv
to be the most common practice in our tree.
2004-01-05use F_CLOSEM if it is available.christos
2004-01-05Rewrite the loop in printflg(): if passing -Z to pax with syntax errorsjmmv
(like executing "pax -Z" by itself), this caused a shr of 32 bits, which is undefined behavior (C99) if the variable is 32 bits wide, too. Also solves a problem where the flgch array could be indexed out of bounds. Thanks to uwe@ and lha@ for their suggestions... I just found the bug :p
2004-01-04remove unused code left from printescaped() backput as pointed out by Jeffjschauma
Ito in PR bin/23969 and PR bin/23970.
2004-01-04Remove unused code left over from temporary printescaped functionality.jschauma
Noted by Jeff Ito in PR bin/23967.
2004-01-04Remove unused code left over from temporary printescaped functionality.jschauma
Noted by Jeff Ito in PR bin/23966.
2003-12-26Crossreference -h and -k. Use Aq instead of \*[Lt]\*[Gt].wiz
2003-12-26Fix bug with previous change- always initialise d.s_block. Now "ls -1sh"simonb
works. XXX: ls -sh now always uses 4 chars for the size column width even if it needs less than that.
2003-12-26KNF - wrap long lines.simonb
2003-12-26implement -h(umanize).grant
from David P. Reese Jr. in PR bin/23870.
2003-12-21Add some articles.wiz
2003-12-21Fix example added in previous.wiz
2003-12-21add a note explaining empty string matching via :jdolecek
this adresses bin/23810 by VaX#n8 bump date and update copyright
2003-12-21add a note to Short-Circuit operators section about the somewhatjdolecek
nonintuitive evaluation in case there is both || and && specified pointed out in bin/23814 by VaX#n8
2003-12-21minor optimization in evalvar()jdolecek
change sent in bin/23813 by VaX#n8
2003-12-18correct 2 typosheas
2003-12-18PR/23786: Robert Nestor: wait command returns the wrong status code. Thischristos
seems to be an off-by-one error, since njobs is decremented before we use it. I hope this does not break the vfork case!
2003-12-17Handle breaksw inside while loop (from tcsh)christos
Really: test commits on new cvs binary.
2003-12-16Correct typo in page header for tpgid.mjl
2003-12-07Some file systems, like FAT, have no inodes in the ffs sense and don'tperry
run out of inodes. df -i was saying, however, that such file systems had 100% of their inodes in use, which would do things like trigger alarms in scripts looking for file systems that have run out. Instead, say 0% are in use, which although not strictly true is at least less wrong, fixes scripts and is less worrying in nightly reports.
2003-12-07mention that -h also overrides BLOCKSIZE, and sort around thereperry
2003-11-28Add -C to usage.wiz
2003-11-28Bump date for previous (hi niels!).wiz
Sort options.
2003-11-28support for cradle mode by marius at monkey.org; cradle mode allows theprovos
systrace UI to be attached and re-attached, it also multiplexes across systrace process so that one UI can function as central notification
2003-11-27Generate command line when SMALL is defined and make buffer full sized.dsl
All the code has been present for a while, and the memory cost is (about) 180 bytes per process. Fixes PR bin/23545
2003-11-25Put a few headers back so this compiles again.simonb
Compile problems noticed by Dan Carosone.
2003-11-24Don't emit any warnings when tar is trying to figure out if the file ismatt
really tar format. valid CPIO files should not trigger a warning from tar.c
2003-11-24Also remove headers that are no longer needed. Also pointed out by Mikejschauma
Small.
2003-11-24Remove unused variable stdout_ok, which was left over from my changesjschauma
in September. Pointed out by Mike Small in a private email.
2003-11-18allow underscores in usernamesprovos
2003-11-16Improve how various "simple" host tools are built and invoked.lukem
2003-11-15Optimise previous change, using fcntl(F_DUPFD) to locate a free descriptordsainty
for us, rather than iterating until satisfied. Suggested by David Laight.
2003-11-15Avoid corrupting the dd(1) IO streams. This would happen by accidentallydsainty
outputting to the files being manipulated by opening a file in the standard IO descriptor space. In particular, an output file unlucky enough to be sitting on descriptor 2 (stderr) is certain to be corrupted. Addresses PR bin/8521, and passes the recently committed regression test "bin/dd".
2003-11-14Posix requires that 'pwd -P' reset the shells saved cwd value - so adsl
subsequent 'pwd -L' will report the same value. Update man page to be a closer match to reality.
2003-11-14This seems to need stdlib.h to get a prototype for abort().dsl
2003-11-14Add '\n' to "fork failed" trace messages.dsl
2003-10-30file system, not filesystem; e.g. is an abbreviation; use FAT instead of msdoswiz
when describing the file system.
2003-10-30Make /bin/pwd almost conform to IEEE 1003.1dsl
- Make 'pwd -L' fall back to 'pwd -P' if PWD is incorrect. - Ignore PWD if it contains "/./" or "/../". - Garbage collect some redundant code. It is still non-conformant because posix mandates that the default be 'pwd -L' (aka ksh), not 'pwd -P' (historic practise everywhere else). Changing the default will break too much...
2003-10-30Validate the arguments to 'pwd'. Treat -L and -P as per pwd(1).dsl
Note that 'pwd -L' and 'pwd -P' almost always report the same answer as the shell detects when 'cd' follows a symlink and discards its cached 'pwd'
2003-10-27passwd(5), not passwd(4). From Igor Sobrado in PR 23278.wiz
2003-10-27Do not xref alias(1) since that points to csh(1).wiz
Noted by Igor Sobrado in PR 23278, fixed following a suggestion by Greg A. Woods.