History log of /netbsd-src/bin/pax/buf_subs.c (Results 1 – 25 of 32)
Revision Date Author Comments
# 5b28f239 08-Sep-2024 rillig <rillig@NetBSD.org>

fix a/an grammar in obvious cases


# d2813c52 28-May-2023 lukem <lukem@NetBSD.org>

pax: don't overwrite destination if -r -w copy fails

Add more error handling to pax -r -w so that any failure
during the copy to the temporary file (including a failed flush)
prevents any existing d

pax: don't overwrite destination if -r -w copy fails

Add more error handling to pax -r -w so that any failure
during the copy to the temporary file (including a failed flush)
prevents any existing destination file from being replaced
with the partial (including possibly empty) temporary file.
The partial temporary file is removed. pax still exists non-zero.

Thanks to Michael van Elst (mlelstv@) for the analysis
of the problem in the PR.

Should fix PR misc/33753.

show more ...


# 86c30724 28-May-2022 andvar <andvar@NetBSD.org>

fix various typos, mainly in comments.


# f96d27e8 19-Mar-2018 msaitoh <msaitoh@NetBSD.org>

s/copy copy/copy/ in comment.


# 8ce1f4ff 29-Apr-2007 msaitoh <msaitoh@NetBSD.org>

fix typos


# cdec4ac1 11-Feb-2006 dsl <dsl@NetBSD.org>

Change all the 'return(x)' to 'return c'.
Makes some other searches I want to do a bit easier.


# bc5cd54e 24-Apr-2005 christos <christos@NetBSD.org>

PR/20228: Simon Burge: pax has problems reading a particular cpio archive
The problem here is that the archive is too short (< 512 bytes). The
buffer routines, try to read at least 512 bytes, even wh

PR/20228: Simon Burge: pax has problems reading a particular cpio archive
The problem here is that the archive is too short (< 512 bytes). The
buffer routines, try to read at least 512 bytes, even when we try to determine
what format file we have, which is wrong.

show more ...


# 448fdb0c 22-Sep-2004 christos <christos@NetBSD.org>

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.


# 24aca7f6 15-Jun-2004 christos <christos@NetBSD.org>

do the special symlink treatment with all negative fd's.


# 171d6532 27-Oct-2003 lukem <lukem@NetBSD.org>

Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/com

Overhaul how `build.sh tools' are used:

* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h

* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).

show more ...


# ed6ed8e6 13-Oct-2003 agc <agc@NetBSD.org>

Move Keith Muller's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22397 by Joel Baker, confirmed
to the board by Keith Muller.


# b5b29542 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22249, verified by myself.


# 68df8738 21-Feb-2003 lukem <lukem@NetBSD.org>

When writing (-w) or copying (-rw), and using -M (stdin file list is
mtree(8) specfile), compare the "post write/copy" mtime against the
actual "pre write/copy" mtime instead of the mtime from the sp

When writing (-w) or copying (-rw), and using -M (stdin file list is
mtree(8) specfile), compare the "post write/copy" mtime against the
actual "pre write/copy" mtime instead of the mtime from the specfile.

This prevents warnings such as:
pax: File ./foo was modified during copy to archive
if the file's mtime in the file system is different to what's in the specfile.
(The resultant file will still get the specfile mtime ...)

show more ...


# d1391f9f 09-Feb-2003 grant <grant@NetBSD.org>

cosmetic error condition improvements.
- sprinkle some fflush() to print filenames correctly.
- print a \n to stdout to fix formatting.
- English, consistently use "Cannot" in error messages.

some w

cosmetic error condition improvements.
- sprinkle some fflush() to print filenames correctly.
- print a \n to stdout to fix formatting.
- English, consistently use "Cannot" in error messages.

some whitespace cleanup.

show more ...


# 3ac7ce18 02-Feb-2003 wiz <wiz@NetBSD.org>

Fix various spelling, grammar, and punctuation problems in comments, from Sergey Svishchev in PR 20164.


# 47b0d14e 31-Jan-2002 tv <tv@NetBSD.org>

Protect __RCSID and __COPYRIGHT from being invoked if not defined.


# c1bd745c 25-Oct-2001 lukem <lukem@NetBSD.org>

- ansi KNF (just remove all the #ifndef __STDC__ prototype junk,
leaving the ansi stuff)
- use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*()
- clean up the NET2_STAT stuff simil

- ansi KNF (just remove all the #ifndef __STDC__ prototype junk,
leaving the ansi stuff)
- use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*()
- clean up the NET2_STAT stuff similar to ftpd; provide #defines and
macros which select which cast to use, etc
- clean up the NET2_FTS and NET2_REGEX #define use

show more ...


# 5893dbb3 07-Oct-2001 wiz <wiz@NetBSD.org>

Fix typo.


# 456dff6c 16-Sep-2001 wiz <wiz@NetBSD.org>

Spell 'occurred' with two 'r's.


# f8adf56d 17-Feb-2000 itohy <itohy@NetBSD.org>

Cleanup and fix typos.
Partially from FreeBSD.


# ba0ae447 17-Feb-2000 itohy <itohy@NetBSD.org>

Fix SIGINFO botch (PR #8868).
Continue partial write(2) on signals (xwrite()).
Partial read(2) at a few places are also continued (xread()).

Add {read,write}_with_restart() hooks for porting on syst

Fix SIGINFO botch (PR #8868).
Continue partial write(2) on signals (xwrite()).
Partial read(2) at a few places are also continued (xread()).

Add {read,write}_with_restart() hooks for porting on systems
which don't restart interrupted read()/write() calls.

Reviewed and discussed in tech-kern and tech-userlevel lists.

show more ...


# 78e294d1 22-Oct-1999 mrg <mrg@NetBSD.org>

support ././@LongLink extraction, as created by GNU tar.


# f2cf747e 22-Oct-1999 mrg <mrg@NetBSD.org>

remove some old cruft.


# 620e5b5b 03-Feb-1998 mycroft <mycroft@NetBSD.org>

Deal with GCC warnings.


# 2b51de1a 25-Jul-1997 scottr <scottr@NetBSD.org>

#if __GNUC__, work around bogus initialization warning that occurs on
at least the m68k-based ports.


12