zip adds entries with relative path including ".."

Bug #668285 reported by Illarion Kovalchuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zip (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: zip

The test case for this bug is very simple.

# mkdir A
# touch A/file
# mkdir B
# cd B

# zip -r archive.zip ../A
  adding: ../A/ (stored 0%)
  adding: ../A/file (stored 0%)

Actual result:

# zipinfo archive.zip
Zip file size: 306 bytes, number of entries: 2
drwxr-xr-x 3.0 unx 0 bx stor 10-Oct-29 14:29 ../A/
-rw-r--r-- 3.0 unx 0 bx stor 10-Oct-29 14:29 ../A/file
2 files, 0 bytes uncompressed, 0 bytes compressed: 0.0%

Expected result:

# zipinfo archive.zip
Zip file size: 306 bytes, number of entries: 2
drwxr-xr-x 3.0 unx 0 bx stor 10-Oct-29 14:29 A/
-rw-r--r-- 3.0 unx 0 bx stor 10-Oct-29 14:29 A/file
2 files, 0 bytes uncompressed, 0 bytes compressed: 0.0%

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: zip 3.0-3
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic-pae 2.6.35.4
Uname: Linux 2.6.35-22-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Fri Oct 29 14:26:04 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: zip

Revision history for this message
Illarion Kovalchuk (illarion-kovalchuk) wrote :
summary: - zip adds entries with relaive path including ".."
+ zip adds entries with relative path including ".."
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.