<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/patch.git/src/patch.c, branch baserock/morph</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>maint: enable the useless_cpp_parens syntax-check rule</title>
<updated>2012-01-01T10:12:43+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-01-01T09:54:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=d504183866dccdf8e7c09522b601236d91591141'/>
<id>d504183866dccdf8e7c09522b601236d91591141</id>
<content type='text'>
* cfg.mk (local-checks-to-skip): Remove sc_useless_cpp_parens,
thus enabling this syntax-check rule.
* src/patch.c: Remove unneeded parentheses.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* cfg.mk (local-checks-to-skip): Remove sc_useless_cpp_parens,
thus enabling this syntax-check rule.
* src/patch.c: Remove unneeded parentheses.
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2012-01-01T09:26:02+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-01-01T09:26:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=2d38b11799be79a2a141181689a889bd5bee25da'/>
<id>2d38b11799be79a2a141181689a889bd5bee25da</id>
<content type='text'>
Run "make update-copyright".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run "make update-copyright".
</pre>
</div>
</content>
</entry>
<entry>
<title>Timestamp not set when creating files with --set-time or --set-utc</title>
<updated>2011-12-08T23:53:38+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2011-12-08T23:53:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=5ca55b84143a840218bcdc78120b44b02d8ef561'/>
<id>5ca55b84143a840218bcdc78120b44b02d8ef561</id>
<content type='text'>
* src/util.h (enum file_attributes): Add FA_XATTRS flag for extended
attributes.
* src/patch.c (main): Use set_file_attributes() even when the infile doesn't
exist: it may still set the file time (FA_TIMES).  Omit all other FA_ flags if
infile doesn't exist.  Otherwise, add FA_XATTRS as well.
* src/util.c (set_file_attributes): Only copy extended attributes if FA_XATTRS
is set.  Avoid using st where it may be undefined.
* tests/preserve-mode-and-timestamp: Add file create test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/util.h (enum file_attributes): Add FA_XATTRS flag for extended
attributes.
* src/patch.c (main): Use set_file_attributes() even when the infile doesn't
exist: it may still set the file time (FA_TIMES).  Omit all other FA_ flags if
infile doesn't exist.  Otherwise, add FA_XATTRS as well.
* src/util.c (set_file_attributes): Only copy extended attributes if FA_XATTRS
is set.  Avoid using st where it may be undefined.
* tests/preserve-mode-and-timestamp: Add file create test.
</pre>
</div>
</content>
</entry>
<entry>
<title>don't call fdopen with a negative FD upon dup failure</title>
<updated>2011-05-25T14:47:33+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-05-24T14:20:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=586239e353e0e4b71f8828f5fda06496229b8874'/>
<id>586239e353e0e4b71f8828f5fda06496229b8874</id>
<content type='text'>
* src/patch.c (open_outfile): If dup fails, don't clobber its
errno value by calling fdopen with -1.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c (open_outfile): If dup fails, don't clobber its
errno value by calling fdopen with -1.
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: use gnulib's progname module</title>
<updated>2011-03-27T07:16:46+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-03-03T08:48:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=8b78759a8b4cb4e3e04c79547642423e904514d6'/>
<id>8b78759a8b4cb4e3e04c79547642423e904514d6</id>
<content type='text'>
* src/patch.c (main): Call set_program_name rather than
initializing program_name explicitly.
* src/common.h: Include progname.h rather than declaring the extern,
program_name.
* bootstrap.conf (gnulib_modules): Add progname.
* cfg.mk (local-checks-to-skip): Remove sc_program_name,
thus enabling this test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c (main): Call set_program_name rather than
initializing program_name explicitly.
* src/common.h: Include progname.h rather than declaring the extern,
program_name.
* bootstrap.conf (gnulib_modules): Add progname.
* cfg.mk (local-checks-to-skip): Remove sc_program_name,
thus enabling this test.
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: update copyright date year ranges to include 2011</title>
<updated>2011-03-27T07:16:46+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-03-01T08:49:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=db2fb7cdba1552586a00d224b5914fae3386f8d6'/>
<id>db2fb7cdba1552586a00d224b5914fae3386f8d6</id>
<content type='text'>
* bootstrap.conf (gnulib_modules): Add update-copyright.
Run "make update-copyright".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bootstrap.conf (gnulib_modules): Add update-copyright.
Run "make update-copyright".
</pre>
</div>
</content>
</entry>
<entry>
<title>build: avoid three gcc warnings</title>
<updated>2011-03-27T07:16:45+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-03-01T08:37:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=d8fdb88440a784d910abc656c2a55a1c5724f4d0'/>
<id>d8fdb88440a784d910abc656c2a55a1c5724f4d0</id>
<content type='text'>
* src/patch.c (mangled_patch): Add "noreturn" attribute.
* src/pch.h (pch_timestamp): Remove ignored "const" attribute.
* src/version.c (XTERN): Remove unused #undef and #define.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c (mangled_patch): Add "noreturn" attribute.
* src/pch.h (pch_timestamp): Remove ignored "const" attribute.
* src/version.c (XTERN): Remove unused #undef and #define.
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: remove unnecessary tests before free</title>
<updated>2011-02-20T23:29:54+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-02-20T10:00:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=8678ae92eac4712eadeeb72cec1b53b395a0e546'/>
<id>8678ae92eac4712eadeeb72cec1b53b395a0e546</id>
<content type='text'>
There is no longer any need to avoid "free(NULL)" (since SunOS 4),
so replace each "if (P) free (P);" with "free (P);".
* src/inp.c (get_input_file): Remove unnecessary test-before-free.
* src/patch.c (get_some_switches): Likewise.
* src/pch.c (intuit_diff_type, pch_swap): Likewise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no longer any need to avoid "free(NULL)" (since SunOS 4),
so replace each "if (P) free (P);" with "free (P);".
* src/inp.c (get_input_file): Remove unnecessary test-before-free.
* src/patch.c (get_some_switches): Likewise.
* src/pch.c (intuit_diff_type, pch_swap): Likewise.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix use of uninitialized outst</title>
<updated>2011-02-15T10:23:44+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@linbit.com</email>
</author>
<published>2011-02-15T10:23:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=dcfb493578174ad9ac19bb748a2b196bed2099ce'/>
<id>dcfb493578174ad9ac19bb748a2b196bed2099ce</id>
<content type='text'>
* src/patch.c (main): Fix use of initialized outst and add an
additional assert.  Reported by Jim Meyering.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c (main): Fix use of initialized outst and add an
additional assert.  Reported by Jim Meyering.
</pre>
</div>
</content>
</entry>
<entry>
<title>Preserve extended attributes of patched files when possible</title>
<updated>2010-10-27T00:53:42+00:00</updated>
<author>
<name>Andreas Gruenbacher</name>
<email>agruen@suse.de</email>
</author>
<published>2010-10-27T00:53:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/patch.git/commit/?id=76d0e43140e83602ecca0073f2ee5515c3a9613b'/>
<id>76d0e43140e83602ecca0073f2ee5515c3a9613b</id>
<content type='text'>
* src/patch.c (main): Set all file attributes of the temporary output
file before renaming it over the final output file (possibly replacing
the input file).  Pass the input file name to set_file_attributes().
* src/util.c (set_file_attributes): When enabled (USE_XATTR), also
copy extended attributes including attributes which define
permissions.
(copy_attr_error, copy_attr_quote, copy_attr_free, copy_attr_check,
copy_attr): Helper functions for copying extended attributes.
* m4/xattr.m4 (gl_FUNC_XATTR): Import from coreutils.
* src/Makefile.am (patch_LDADD): Add $(LIB_XATTR) here.
* bootstrap.conf: Use the gnulib verror module.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/patch.c (main): Set all file attributes of the temporary output
file before renaming it over the final output file (possibly replacing
the input file).  Pass the input file name to set_file_attributes().
* src/util.c (set_file_attributes): When enabled (USE_XATTR), also
copy extended attributes including attributes which define
permissions.
(copy_attr_error, copy_attr_quote, copy_attr_free, copy_attr_check,
copy_attr): Helper functions for copying extended attributes.
* m4/xattr.m4 (gl_FUNC_XATTR): Import from coreutils.
* src/Makefile.am (patch_LDADD): Add $(LIB_XATTR) here.
* bootstrap.conf: Use the gnulib verror module.
</pre>
</div>
</content>
</entry>
</feed>
