| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
use regfree() to release the memory requested by the regular expression.#1804
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is not directly useful in libarchive at the present time, but
it might be in the future. If a project which uses this code adds
an atexit(3) handler to clean up memory, and somebody runs:
bsdtar somestring -t
then "omestring" will be interpreted as an (invalid) substitution
rule and call lafe_errc(). However, if the atexit() handler then
calls cleanup_substition(), it will try to free(rule->result)
which was not initialized.
Sponsored by: Tarsnap Backup Inc.
|
|
|
|
|
|
|
|
| |
Add loop to move through a path name looking for additional matches if
the global flag is provided for a substitution. The loop breaks when no
more matches are found for the rule. Previously, the global flag would
end up advancing to the next rule instead of searching farther into the
path for another match.
|
|
|
|
|
|
|
| |
This change is mainly meant for Windows regex support, where PCRE Windows development is much
more active than development of the regex library found in the GNUWin32 packages. I found that
the latest release of PCRE built right out of the box, unlike the GNUWin32 regex library released
6 years ago which failed to build from source for me using the mingw toolchain.
|
|
|
|
|
|
| |
control hardlink, regular filename, and symlink substitutions.
SVN-Revision: 3748
|
|
|
|
|
|
|
|
|
|
| |
targets get properly rewritten by default.
Adjust the -s parser so that symlink and hardlink target
rewriting is enabled by default and the 's' or 'S' flags
disable both.
SVN-Revision: 3676
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
According to the man page, "~ is substituted with the match", but prior to
this commit it was substituted with the entire source string up to the end
of the matching region.
-s /o/_~/, prior to this commit: foo -> f_foo
-s /o/_~/, after this commit: foo -> f_oo
Reported by: Carlo Teubner
SVN-Revision: 3643
|
|
|
|
|
|
|
|
|
| |
it's hard to imagine this actually being compiled "wrong", but avoid it
anyway.
Via: Tarsnap
SVN-Revision: 3622
|
|
|
|
| |
SVN-Revision: 1163
|
|
|
|
| |
SVN-Revision: 1118
|
|
|
|
|
|
|
|
| |
Add test_option_s to exercise basic -s handling.
Thanks to Wayne Marshall for reporting this problem.
SVN-Revision: 369
|
|
|
|
| |
SVN-Revision: 134
|
|
|
|
| |
SVN-Revision: 118
|
|
|
|
| |
SVN-Revision: 105
|
|
|
|
| |
SVN-Revision: 104
|
|
|
|
|
|
| |
already defined.
SVN-Revision: 99
|
|
|
|
|
|
|
| |
the new source file, and fix a minor compiler warning in the
substitution code.
SVN-Revision: 91
|
|
pax-as-tar. This code is not compiled in on platforms lacking
regex.h.
SVN-Revision: 53
|