Alon Bar-Lev has uploaded a new change for review.

Change subject: utils: tar: use entry to access directory
......................................................................

utils: tar: use entry to access directory

hopefully it will make coverity happier.

Change-Id: I9290b08763ea4772ec395deb4297f96a119fd5bf
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/archivers/tar/Tar.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/48/31748/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/archivers/tar/Tar.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/archivers/tar/Tar.java
index c427f62..86adfcb 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/archivers/tar/Tar.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/archivers/tar/Tar.java
@@ -35,7 +35,7 @@
             entry.setMode(0700);
             archive.putArchiveEntry(entry);
             archive.closeArchiveEntry();
-            for (String f : file.list()) {
+            for (String f : entry.getFile().list()) {
                 _recurse(
                     archive,
                     new File(entry.getFile(), f),


-- 
To view, visit http://gerrit.ovirt.org/31748
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9290b08763ea4772ec395deb4297f96a119fd5bf
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to