| #
2b9c0f9f |
| 05-Aug-2024 |
riastradh <riastradh@NetBSD.org> |
pax(1): Nix trailing whitespace.
No functional change intended.
|
| #
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 ...
|
| #
ee05db82 |
| 20-Mar-2019 |
gutteridge <gutteridge@NetBSD.org> |
pax: fix typos in comments in file_subs.c & tar.c
Stamp out "greengrocers' apostrophes" in various places (arguably there are still more present, but style guides vary on that, and my energies spent
pax: fix typos in comments in file_subs.c & tar.c
Stamp out "greengrocers' apostrophes" in various places (arguably there are still more present, but style guides vary on that, and my energies spent corralling wayward punctuation marks could be spent elsewhere).
show more ...
|
| #
e164b146 |
| 29-Jul-2013 |
christos <christos@NetBSD.org> |
PR/48095: NAKAJIMA Yoshihiro: remove casts from time_t to long
|
| #
a992ea79 |
| 07-Apr-2009 |
perry <perry@NetBSD.org> |
Fixes from christos for pr-41167
XXX -X is still broken, but that wasn't part of this PR.
|
| #
cfdef6ec |
| 10-Jan-2008 |
tls <tls@NetBSD.org> |
Teach set_ftime about symbolic links, because it has to know: on some Linux systems, when we build as a tool we think we have lutimes but it doesn't work on some filesystems at runtime. A bit ugly b
Teach set_ftime about symbolic links, because it has to know: on some Linux systems, when we build as a tool we think we have lutimes but it doesn't work on some filesystems at runtime. A bit ugly but effective and without use of AC_TRY_RUN in the tool build. Tidier (than mine) set_ftime reorganization from christos.
show more ...
|
| #
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.
|
| #
d2169f9f |
| 04-Jan-2006 |
yamt <yamt@NetBSD.org> |
obey umask as it used to be before the "mkstemp and then rename" change.
|
| #
88ee54d8 |
| 18-Sep-2005 |
christos <christos@NetBSD.org> |
Check for another race reported by chuq.
|
| #
b60b306e |
| 16-Sep-2005 |
christos <christos@NetBSD.org> |
Another missing mkdir() race pointed out by chuq. Factor out the mkdir code.
|
| #
0743a9e8 |
| 13-Sep-2005 |
christos <christos@NetBSD.org> |
use stat and not lstat to detect if we have a directory. refactor the mkpath() code.
|
| #
92982112 |
| 13-Sep-2005 |
christos <christos@NetBSD.org> |
when creating directories, check if the failure occured because someone else created the directory before we did to avoid races. From chuq.
|
| #
06a1f6e7 |
| 24-Apr-2005 |
christos <christos@NetBSD.org> |
For clarity instead of using -1 and -2 use the negative of the archive type.
|
| #
d980bf34 |
| 22-Sep-2004 |
christos <christos@NetBSD.org> |
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
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.
show more ...
|
| #
ed868bc7 |
| 22-Aug-2004 |
tron <tron@NetBSD.org> |
Propery handle "cpio" archives where the last hardlink includes the data of a file. This fixes PR bin/26514.
|
| #
467ca7e2 |
| 02-Jul-2004 |
enami <enami@NetBSD.org> |
Salvage the `create parent directories and try again' path which is removed by the previous commit.
|
| #
b0cddc5f |
| 26-Jun-2004 |
grant <grant@NetBSD.org> |
break out of the loop and avoid the infinite loop if attempts to create, unlink and create all fail.
|
| #
e069813a |
| 26-Jun-2004 |
grant <grant@NetBSD.org> |
don't attempt to remove the current directory.
|
| #
b2f78261 |
| 20-Jun-2004 |
jmc <jmc@NetBSD.org> |
Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulti
Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
show more ...
|
| #
69c89ea8 |
| 03-May-2004 |
christos <christos@NetBSD.org> |
Don't exit with 1 on broken archives that mark directories as files for the benefit of pkgsrc. I would have prefered that people fixed their archivers instead.
|
| #
5864f656 |
| 30-Apr-2004 |
matt <matt@NetBSD.org> |
Set the chflags *after* the rename, not before.
|
| #
78b5033e |
| 27-Apr-2004 |
christos <christos@NetBSD.org> |
PR/25350: Alan Barrett: Treat the sticky bit specially as non-superusers cannot set it on non-directories (elvis-2.2_0 extraction failed)
|
| #
04d1f5de |
| 25-Apr-2004 |
christos <christos@NetBSD.org> |
PR/25188: Thomas Klausner: pax-as-tar problem with trailing slashes The problem is with the program that generates the tar file: -rwxrwxrwx 1 root wheel 0 Feb 8 16:46 faad2/aacDECdrop/
PR/25188: Thomas Klausner: pax-as-tar problem with trailing slashes The problem is with the program that generates the tar file: -rwxrwxrwx 1 root wheel 0 Feb 8 16:46 faad2/aacDECdrop/ It creates directory nodes without the 'd' bit set, so that pax thinks they are files and does the temporary name and dance with them. Added code to detect this condition, warn about it, and work around it.
show more ...
|
| #
af4f4c56 |
| 20-Apr-2004 |
christos <christos@NetBSD.org> |
PR/25207: Hubert Feyrer: tar cores on certain archive contents Don't forget to cleanup xtmp_name when we fail to create the temporary file.
|