<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/patch.git/src/util.h, branch testing</title>
<subtitle>git.savannah.gnu.org: git/patch.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/'/>
<entry>
<title>Update list of gnulib modules used</title>
<updated>2015-01-31T21:14:01+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-01-31T02:15:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=b72e3be5c8a75f310924dae660f3f506112a2062'/>
<id>b72e3be5c8a75f310924dae660f3f506112a2062</id>
<content type='text'>
* bootstrap.conf (gnulib_modules): Remove lchmod, lstat, mkdir, readlink,
rename, mkdir, symlink, unlink, utimens. Add fchownat, fchmodat, fstatat,
mkdirat, openat, readlinkat, renameat, symlinkat, unlinkat, utimensat.
* src/util.h: Don't include &lt;utimens.h&gt; anymore.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bootstrap.conf (gnulib_modules): Remove lchmod, lstat, mkdir, readlink,
rename, mkdir, symlink, unlink, utimens. Add fchownat, fchmodat, fstatat,
mkdirat, openat, readlinkat, renameat, symlinkat, unlinkat, utimensat.
* src/util.h: Don't include &lt;utimens.h&gt; anymore.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the fix for CVE-2015-1196</title>
<updated>2015-01-22T20:51:51+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@gnu.org</email>
</author>
<published>2015-01-21T09:01:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=41688ad8ef88bc296f3bed30b171ec73e5876b88'/>
<id>41688ad8ef88bc296f3bed30b171ec73e5876b88</id>
<content type='text'>
* src/util.c (filename_is_safe): New function split off from name_is_valid().
(symlink_target_is_valid): Explain why we cannot have absolute symlinks or
symlinks with ".." components for now.
(move_file): Move absolute filename check here and explain.
* tests/symlinks: Put test case with ".." symlink in comments for now.
* NEWS: Add CVE number.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/util.c (filename_is_safe): New function split off from name_is_valid().
(symlink_target_is_valid): Explain why we cannot have absolute symlinks or
symlinks with ".." components for now.
(move_file): Move absolute filename check here and explain.
* tests/symlinks: Put test case with ".." symlink in comments for now.
* NEWS: Add CVE number.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move symlink_target_is_valid() and cwd_is_root()</title>
<updated>2015-01-20T09:10:10+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>andreas.gruenbacher@gmail.com</email>
</author>
<published>2015-01-20T09:09:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=ae88d1c270df6ba685bd422f3bf2607367de7cfc'/>
<id>ae88d1c270df6ba685bd422f3bf2607367de7cfc</id>
<content type='text'>
* src/util.c: Move symlink_target_is_valid() and cwd_is_root() here from
src/pch.c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/util.c: Move symlink_target_is_valid() and cwd_is_root() here from
src/pch.c.
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce function to lstat all input files</title>
<updated>2012-09-19T01:07:31+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-09-18T23:52:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=59609b50c538db1805161cb8afe9986f82b9759a'/>
<id>59609b50c538db1805161cb8afe9986f82b9759a</id>
<content type='text'>
* src/util.c (stat_file): New function.
(move_file): Use here.
* src/util.h (stat_file): Declare here.
* src/inp.c (get_input_file): Use here.
* src/patch.c (main): Use here.
(delete_file_later): Use here.
* src/pch.c (there_is_another_patch): Use here.
(intuit_diff_type): Use here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/util.c (stat_file): New function.
(move_file): Use here.
* src/util.h (stat_file): Declare here.
* src/inp.c (get_input_file): Use here.
* src/patch.c (main): Use here.
(delete_file_later): Use here.
* src/pch.c (there_is_another_patch): Use here.
(intuit_diff_type): Use here.
</pre>
</div>
</content>
</entry>
<entry>
<title>Change the type of *_needs_removal from int to bool</title>
<updated>2012-09-13T14:34:58+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-04-14T11:41:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=f0388d2dbff7903e514f86947f3b7c7e29e674c8'/>
<id>f0388d2dbff7903e514f86947f3b7c7e29e674c8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Support double-quoted filenames in all context diff formats</title>
<updated>2012-08-11T09:09:11+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-08-11T09:09:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=66aeedee12d621113fe0906b7cbd124cc4e9ebd5'/>
<id>66aeedee12d621113fe0906b7cbd124cc4e9ebd5</id>
<content type='text'>
* src/util.c (fetchname): Always recognize double-quoted filenames.
* src/util.h (fetchname): Update prototype.
* src/pch.c (intuit_diff_type): Update calls to fetchname().
* tests/quoted-filenames: Change to a normal unified diff.
* NEWS: Update.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/util.c (fetchname): Always recognize double-quoted filenames.
* src/util.h (fetchname): Update prototype.
* src/pch.c (intuit_diff_type): Update calls to fetchname().
* tests/quoted-filenames: Change to a normal unified diff.
* NEWS: Update.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove SHA1 hashes from the file id cache</title>
<updated>2012-08-08T11:39:19+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-08-07T22:24:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=9a37354cc6e56a18e297087a861ee7435e7fb9c6'/>
<id>9a37354cc6e56a18e297087a861ee7435e7fb9c6</id>
<content type='text'>
* src/util.c (file_id): Remove sha1 field.
(update_sha1, lookup_sha1): Remove functions.
* src/util.h (update_sha1, lookup_sha1): Remove declarations.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/util.c (file_id): Remove sha1 field.
(update_sha1, lookup_sha1): Remove functions.
* src/util.h (update_sha1, lookup_sha1): Remove declarations.
</pre>
</div>
</content>
</entry>
<entry>
<title>In the file id cache, allow to flag files in the output queue</title>
<updated>2012-08-08T11:10:41+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-08-07T20:48:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=e294241b865ed2262ba84ebfc0ac982cdf33c479'/>
<id>e294241b865ed2262ba84ebfc0ac982cdf33c479</id>
<content type='text'>
* src/util.c (file_id): Add queued_output field.
(__insert_file_id): Initialize queued_output.
(set_queued_output, has_queued_output): New functions.
* src/util.h (set_queued_output, has_queued_output): Declare.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/util.c (file_id): Add queued_output field.
(__insert_file_id): Initialize queued_output.
(set_queued_output, has_queued_output): New functions.
* src/util.h (set_queued_output, has_queued_output): Declare.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow to remember SHA1 hashes in the file id cache</title>
<updated>2012-07-31T19:58:30+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-07-30T14:45:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=ea4212ee512edb4a8c0b8559e961d8e06855db9d'/>
<id>ea4212ee512edb4a8c0b8559e961d8e06855db9d</id>
<content type='text'>
* src/util.c (file_id): New sha1 field.
(__insert_file_id): Split off from insert_file_id().  Initialize sha1 field.
(__lookup_file_id): Split off from lookup_file_id().
(update_sha1): Remember SHA1 hash of a file or update the remembered SHA1 hash.
(lookup_sha1): Look up the SHA1 hash of a file.
* src/util.h (update_sha1, lookup_sha1): Declare.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/util.c (file_id): New sha1 field.
(__insert_file_id): Split off from insert_file_id().  Initialize sha1 field.
(__lookup_file_id): Split off from lookup_file_id().
(update_sha1): Remember SHA1 hash of a file or update the remembered SHA1 hash.
(lookup_sha1): Look up the SHA1 hash of a file.
* src/util.h (update_sha1, lookup_sha1): Declare.
</pre>
</div>
</content>
</entry>
<entry>
<title>No longer remember backup files</title>
<updated>2012-04-17T14:48:19+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2012-04-14T17:15:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/patch.git/commit/?id=9ff0689857ddaf5fe69e9f94ac0342c6ee5a3b6c'/>
<id>9ff0689857ddaf5fe69e9f94ac0342c6ee5a3b6c</id>
<content type='text'>
Remembering backup files was needed because we would have lost track of deleted
files before -- but we don't delete files immediately anymore.
* src/util.c (create_backup_copy): No longer remember backup files.
(create_backup): Likewise; update comment.
(move_file): Update create_backup() call.
* src/util.h (create_backup): Update prototype.
* src/patch.c (output_file): Update create_backup() call.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remembering backup files was needed because we would have lost track of deleted
files before -- but we don't delete files immediately anymore.
* src/util.c (create_backup_copy): No longer remember backup files.
(create_backup): Likewise; update comment.
(move_file): Update create_backup() call.
* src/util.h (create_backup): Update prototype.
* src/patch.c (output_file): Update create_backup() call.
</pre>
</div>
</content>
</entry>
</feed>
