rpms/tar/F-9 tar-1.19-xattrs.patch,1.3,1.4 tar.spec,1.71,1.72
Ondrej Vasik
ovasik at fedoraproject.org
Tue Nov 25 12:38:26 UTC 2008
- Previous message (by thread): rpms/epic/devel .cvsignore, 1.5, 1.6 epic.spec, 1.29, 1.30 sources, 1.7, 1.8
- Next message (by thread): rpms/libglfw/devel glfw-makefiles.patch, NONE, 1.1 glfw.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: ovasik
Update of /cvs/extras/rpms/tar/F-9
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv18925
Modified Files:
tar-1.19-xattrs.patch tar.spec
Log Message:
fix off-by-one errors in xattrs patch (#472355)
tar-1.19-xattrs.patch:
Index: tar-1.19-xattrs.patch
===================================================================
RCS file: /cvs/extras/rpms/tar/F-9/tar-1.19-xattrs.patch,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tar-1.19-xattrs.patch 13 Feb 2008 16:20:29 -0000 1.3
+++ tar-1.19-xattrs.patch 25 Nov 2008 12:38:25 -0000 1.4
@@ -216,7 +216,7 @@
+
+ if (ret != -1)
+ {
-+ *ret_ptr = xmemdup (val, ret);
++ *ret_ptr = xmemdup (val, ret + 1);
+ *ret_len = ret;
+ }
+ else if (errno != ENOATTR)
@@ -1302,21 +1302,27 @@
if (0 < same_owner_option && permstatus != INTERDIR_PERMSTATUS)
{
/* When lchown exists, it should be used to change the attributes of
-@@ -352,6 +375,23 @@ delay_set_stat (char const *file_name, s
+@@ -352,6 +375,29 @@ delay_set_stat (char const *file_name, s
data->invert_permissions = invert_permissions;
data->permstatus = permstatus;
data->after_links = 0;
+ data->cntx_name = NULL;
+ assign_string (&data->cntx_name, st->cntx_name);
+ if (st->acls_a_ptr)
-+ data->acls_a_ptr = xmemdup(st->acls_a_ptr, st->acls_a_len);
++ {
++ data->acls_a_ptr = xmemdup(st->acls_a_ptr, st->acls_a_len + 1);
++ data->acls_a_len = st->acls_a_len;
++ }
+ else
+ {
+ data->acls_a_ptr = NULL;
+ data->acls_a_len = 0;
+ }
+ if (st->acls_d_ptr)
-+ data->acls_d_ptr = xmemdup(st->acls_d_ptr, st->acls_d_len);
++ {
++ data->acls_d_ptr = xmemdup(st->acls_d_ptr, st->acls_d_len + 1);
++ data->acls_d_len = st->acls_d_len;
++ }
+ else
+ {
+ data->acls_d_ptr = NULL;
Index: tar.spec
===================================================================
RCS file: /cvs/extras/rpms/tar/F-9/tar.spec,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- tar.spec 10 Nov 2008 13:25:18 -0000 1.71
+++ tar.spec 25 Nov 2008 12:38:25 -0000 1.72
@@ -2,7 +2,7 @@
Name: tar
Epoch: 2
Version: 1.19
-Release: 5%{?dist}
+Release: 6%{?dist}
License: GPLv3+
Group: Applications/Archiving
URL: http://www.gnu.org/software/tar/
@@ -95,6 +95,9 @@
%{_infodir}/tar.info*
%changelog
+* Tue Nov 25 2008 Ondrej Vasik <ovasik at redhat.com> 2:1.19-6
+- fix off-by-one errors in xattrs patch (#472355)
+
* Mon Nov 10 2008 Kamil Dudka <kdudka at redhat.com> 2:1.19-5
- fixed bug #465803: labels with --multi-volume (upstream patch)
- Previous message (by thread): rpms/epic/devel .cvsignore, 1.5, 1.6 epic.spec, 1.29, 1.30 sources, 1.7, 1.8
- Next message (by thread): rpms/libglfw/devel glfw-makefiles.patch, NONE, 1.1 glfw.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list