Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unzip bug?

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
0
0
PL
I met a problem with unziping file when the extracted file is greather than 2GB.

I tried several unzip versions with the same result.

The filesystem is jfs2 type and user has file limit "unlimited" "file(blocks) unlimited"

Of course I can manually create files greather thna 2GB so I think this must be the unzip bug.

Under the MS Windows the file can be unpacked without any problems.

Any idea how to fix the issue on AIX? (an application works with zip files).

Thank you in advance!

(below problem reproduced with latest unzip)

user@testsystem:/home/user$ ls -al
total 1263176
drwxr-xr-x 2 user staff 256 Nov 27 17:58 .
drwxr-xr-x 3 user staff 4096 Nov 24 01:43 ..
-rw-r--r-- 1 user staff 249506545 Nov 22 23:39 myarchivefile.ZIP
user@testsystem:/home/user$
user@testsystem:/home/user$ unzip -t -P password myarchivefile.ZIP
Archive: myarchivefile.ZIP
testing: myarchivefile OK
No errors detected in compressed data of myarchivefile.ZIP.
user@testsystem:/home/user$ unzip -P password myarchivefile.ZIP
Archive: myarchivefile.ZIP
inflating: myarchivefile
myarchivefile: write error (disk full?). Continue? (y/n/^C)


On the other screen I have been observing filesystem usage:

$ while true;do df -g .|grep -v ^Filesystem;sleep 5;done
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.99 74% 30882 4% /home
/dev/hd1 15.00 3.88 75% 30883 4% /home
/dev/hd1 15.00 3.62 76% 30883 4% /home
/dev/hd1 15.00 3.22 79% 30883 4% /home
/dev/hd1 15.00 2.91 81% 30883 5% /home
/dev/hd1 15.00 2.61 83% 30883 5% /home
/dev/hd1 15.00 2.33 85% 30883 6% /home
/dev/hd1 15.00 2.04 87% 30883 6% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home
/dev/hd1 15.00 1.99 87% 30883 7% /home


And when unzip errored and prompted, I saw in the directory only 2GB file!!

user@testsystem:/home/user$ ls -al
total 1263176
drwxr-xr-x 2 user staff 256 Nov 27 17:58 .
drwxr-xr-x 3 user staff 4096 Nov 24 01:43 ..
-rw-r--r-- 1 user staff 249506545 Nov 22 23:39 myarchivefile.ZIP
-rw-r--r-- 1 user staff 2147483647 Nov 27 18:25 myarchivefile
 
Which unzip versions have you tried? I would think you'd need a pretty recent version in order to have large file enabled both on the zipfile side and the extracted file side...

Perhaps you need to build your own executable?


HTH,

p5wizard
 
when building your own add -D_POSIX_SOURCE -D_LARGE_FILES -D_LARGE_FILE_API for large files

Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top