<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/patch.git/tests, branch testing</title>
<subtitle>git.savannah.gnu.org: git/patch.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/'/>
<entry>
<title>Add more path traversal test cases</title>
<updated>2015-03-05T21:57:07+00:00</updated>
<author>
<name>Tim Waugh</name>
<email>twaugh@redhat.com</email>
</author>
<published>2015-02-28T01:40:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=9f92e52c9fd3063abe0f4f6c80b2faf83163c905'/>
<id>9f92e52c9fd3063abe0f4f6c80b2faf83163c905</id>
<content type='text'>
* tests/symlinks: Add more path traversal test cases.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/symlinks: Add more path traversal test cases.
</pre>
</div>
</content>
</entry>
<entry>
<title>Follow directory symlinks within the working directory</title>
<updated>2015-03-05T21:57:04+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-02-21T19:13:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=ef609c26b22e5d6ea3c891e4c87ab1c679146f5f'/>
<id>ef609c26b22e5d6ea3c891e4c87ab1c679146f5f</id>
<content type='text'>
* src/safe.c (struct symlink): A symlink to resolve.
(push_symlink, pop_symlink): New functions.
(read_symlink): Create a new symlink stack entry.
(traverse_next): Follow ".." components within the working directory. When
hitting symlinks, "follow" them by reading and returning them.
(traverse_another_path): Recursively traverse symlinks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/safe.c (struct symlink): A symlink to resolve.
(push_symlink, pop_symlink): New functions.
(read_symlink): Create a new symlink stack entry.
(traverse_next): Follow ".." components within the working directory. When
hitting symlinks, "follow" them by reading and returning them.
(traverse_another_path): Recursively traverse symlinks.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix handling of renamed files</title>
<updated>2015-02-22T17:50:16+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-02-22T17:42:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=db9f39507e3bb739b696c523274cb34adc5e4895'/>
<id>db9f39507e3bb739b696c523274cb34adc5e4895</id>
<content type='text'>
When a file has already been renamed, make sure it is not renamed back to its
old name.  Reported by Guido Draheim.
* src/patch.c (main): Make sure we never rename a file back to its previous
name. Report when a file was renamed already.
* tests/copy-rename: Add "already renamed" test cases.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When a file has already been renamed, make sure it is not renamed back to its
old name.  Reported by Guido Draheim.
* src/patch.c (main): Make sure we never rename a file back to its previous
name. Report when a file was renamed already.
* tests/copy-rename: Add "already renamed" test cases.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix symlinks test case on some architectures</title>
<updated>2015-02-10T21:31:56+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-02-10T21:31:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=8d12036047eb6cba16d3ae3f6b43c789d8378462'/>
<id>8d12036047eb6cba16d3ae3f6b43c789d8378462</id>
<content type='text'>
* src/safe.c: Include util.h for say(). Define EFTYPE if it isn't defined
already.
(traverse_another_path): When openat fails, also check for EMLINK, EFTYPE, and
ENOTDIR. Change the error message to "file ... is not a directory" and only
skip the rest of the patch instead of aborting.
* tests/symlinks: Update.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/safe.c: Include util.h for say(). Define EFTYPE if it isn't defined
already.
(traverse_another_path): When openat fails, also check for EMLINK, EFTYPE, and
ENOTDIR. Change the error message to "file ... is not a directory" and only
skip the rest of the patch instead of aborting.
* tests/symlinks: Update.
</pre>
</div>
</content>
</entry>
<entry>
<title>Test suite portability fixes</title>
<updated>2015-02-04T09:54:03+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-02-02T22:12:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=7297352e16bdd22c2c0842aebdf612d40271b75d'/>
<id>7297352e16bdd22c2c0842aebdf612d40271b75d</id>
<content type='text'>
Reported and fixed (mostly) by Christian Weisgerber &lt;naddy@mips.inka.de&gt;:
* tests/deep-directories: Avoid the bash &gt;&amp; redirection operator.
* tests/no-mode-change-git-diff: Instead of "stat -c", use "ls -l  sed".
* tests/read-only-files: A redirection failure for a special built-in causes
some shells (FreeBSD sh, OpenBSD sh (pdksh), some bash --posix) to exit, and
the colon command is a special built-in. Perform the redirection in a subshell.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reported and fixed (mostly) by Christian Weisgerber &lt;naddy@mips.inka.de&gt;:
* tests/deep-directories: Avoid the bash &gt;&amp; redirection operator.
* tests/no-mode-change-git-diff: Instead of "stat -c", use "ls -l  sed".
* tests/read-only-files: A redirection failure for a special built-in causes
some shells (FreeBSD sh, OpenBSD sh (pdksh), some bash --posix) to exit, and
the colon command is a special built-in. Perform the redirection in a subshell.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check the result of the --follow-symlinks option</title>
<updated>2015-02-02T14:43:56+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-02-02T14:43:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=ddf16e120974fed883294fabbe2210384d754a07'/>
<id>ddf16e120974fed883294fabbe2210384d754a07</id>
<content type='text'>
* tests/symlinks: Check the result of treating a symlink as a file with
--follow-symlinks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/symlinks: Check the result of treating a symlink as a file with
--follow-symlinks.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix indentation heuristic for context diffs</title>
<updated>2015-01-31T21:14:01+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-01-31T20:51:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=38d87ecb9e8e0c1c5e234bf4888edb159f18af46'/>
<id>38d87ecb9e8e0c1c5e234bf4888edb159f18af46</id>
<content type='text'>
Diffs can be indented by a variable number of spaces, tabs, or X characters.
Make sure that intuit_diff_type() only accepts context diffs where the first
and second line are indented identically, or else another_hunk() will fail.
* src/pch.c (intuit_diff_type): Remember the indentation of the last line. Only
recognize context diff hunks with the same amount of indentation on the first
and second line.
* tests/garbage: New test case.
* tests/Makefile.am (TESTS): Add test case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Diffs can be indented by a variable number of spaces, tabs, or X characters.
Make sure that intuit_diff_type() only accepts context diffs where the first
and second line are indented identically, or else another_hunk() will fail.
* src/pch.c (intuit_diff_type): Remember the indentation of the last line. Only
recognize context diff hunks with the same amount of indentation on the first
and second line.
* tests/garbage: New test case.
* tests/Makefile.am (TESTS): Add test case.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: add a test case for unwanted mode changes.</title>
<updated>2015-01-31T21:14:01+00:00</updated>
<author>
<name>Quentin Casasnovas</name>
<email>quentin.casasnovas@oracle.com</email>
</author>
<published>2015-01-27T12:33:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=68d39ff29f03cd85b5993ff17d2adf6c7ff9e496'/>
<id>68d39ff29f03cd85b5993ff17d2adf6c7ff9e496</id>
<content type='text'>
Signed-off-by: Quentin Casasnovas &lt;quentin.casasnovas@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Quentin Casasnovas &lt;quentin.casasnovas@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>test-lib.sh: factorize require_* functions</title>
<updated>2015-01-31T21:14:01+00:00</updated>
<author>
<name>Quentin Casasnovas</name>
<email>quentin.casasnovas@oracle.com</email>
</author>
<published>2015-01-27T12:31:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=c80b1a06a9209e6e7f1b624b9058e2b838c67797'/>
<id>c80b1a06a9209e6e7f1b624b9058e2b838c67797</id>
<content type='text'>
Since the code is identical when just checking if a utility is present on
the system or not, we can factorize it.

Signed-off-by: Quentin Casasnovas &lt;quentin.casasnovas@oracle.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since the code is identical when just checking if a utility is present on
the system or not, we can factorize it.

Signed-off-by: Quentin Casasnovas &lt;quentin.casasnovas@oracle.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add test case for patch behind symlink</title>
<updated>2015-01-31T21:14:01+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-01-31T14:23:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=8d621e88193c6a5a80081104d9ae4434cff78722'/>
<id>8d621e88193c6a5a80081104d9ae4434cff78722</id>
<content type='text'>
* tests/symlinks: Add a test case where the patch file itself is in a path that
follows a symbolic link; we want to continue allowing that.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/symlinks: Add a test case where the patch file itself is in a path that
follows a symbolic link; we want to continue allowing that.
</pre>
</div>
</content>
</entry>
</feed>
