Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 952139 Details for
Bug 1156597
Pcs should not generate tarballs that "tar" complains about when unpacking
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed fix
0001-Fix-warning-when-unpacking-config-backup-tarball.patch (text/plain), 1.07 KB, created by
Tomas Jelinek
on 2014-10-30 13:57:47 UTC
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Tomas Jelinek
Created:
2014-10-30 13:57:47 UTC
Size:
1.07 KB
patch
obsolete
>From efe9326720ef809e94393f544fc53f4c63ee3ff3 Mon Sep 17 00:00:00 2001 >From: Tomas Jelinek <tojeline@redhat.com> >Date: Thu, 30 Oct 2014 14:46:49 +0100 >Subject: [PATCH] Fix warning when unpacking config backup tarball > >--- > pcs/config.py | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/pcs/config.py b/pcs/config.py >index 0c03b20..50d801c 100644 >--- a/pcs/config.py >+++ b/pcs/config.py >@@ -353,11 +353,11 @@ def config_backup_check_version(version): > utils.err("Cannot determine version of the backup") > > def config_backup_add_version_to_tarball(tarball, version=None): >- version = version if version is not None else str(config_backup_version()) >- version_info = tarfile.TarInfo("version.txt") >- version_info.size = len(version) >- version_info.type = tarfile.REGTYPE >- tarball.addfile(version_info, cStringIO.StringIO(version)) >+ return utils.tar_add_file_data( >+ tarball, >+ version if version is not None else str(config_backup_version()), >+ "version.txt" >+ ) > > def config_backup_version(): > return 1 >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1156597
: 952139