Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...

Browsing this Thread:   1 Anonymous Users





unarc small bug

Joined:
2016/8/7 1:55
Group:
Member
Posts: 32
Offline
I encountered a bug when extracting a zip file (try this http://archives.aros-exec.org/share/u ... ench/wbxcli-i386-aros.zip as an example).

It gives an error message saying "name of file exists as directory"; then I press the "Skip" button and the files are extracted normally.


Posted on: 2/20 7:06
Transfer the post to other applications Transfer


Re: unarc small bug

Joined:
2016/8/16 0:09
Group:
Member
Posts: 256
Offline
The only thing i am able to say is that the wbXcli executable is located inside a directory with exactly the same name.

So, that might perhaps cause issues in case it is extracted without recreating the original directory structure.

In case it keeps causing issues then perhaps you could try unzip or 7zdec utilities in order to extract ?

In that case do not forget to tell that the directories also need to be recreated.

Unfortunately i was unable to check with unarc so i cannot confirm nor deny your encountered experience with it.

Posted on: 2/21 4:15
Transfer the post to other applications Transfer


Re: unarc small bug

Joined:
2005/8/17 16:00
From Germany
Group:
Member
Posts: 2206
Offline
Ehemm

http://aros-exec.org/modules/newbb/vi ... t_id=85534#forumpost85534

The source of UnArc:
https://trac.aros.org/trac/browser/ARO ... /unarc/unarcgroup_class.c


This is how the archive gets expanded:

result = xadFileUnArc
(
data->ai,
XAD_ENTRYNUMBER, i + 1,
XAD_OUTFILENAME, data->targetpathname,
XAD_MAKEDIRECTORY, TRUE,
XAD_OVERWRITE, TRUE,
TAG_DONE
);

I don't know what's wrong.

Posted on: 2/21 9:46
_________________
AROS - Make code, not war
Transfer the post to other applications Transfer


Re: unarc small bug

Joined:
2004/10/30 17:13
From Ireland
Group:
Member
Posts: 2614
Offline
It looks like the problem is that these archives, unusually, have an entry for directories *after* the entries for the files/dirs within those dirs. This could be a bug in XAD. You would expect that setting XAD_OVERWRITE to TRUE would avoid the problem, but clearly it doesn't.

Posted on: 2/21 11:03
Transfer the post to other applications Transfer


Re: unarc small bug

Joined:
2004/10/30 17:13
From Ireland
Group:
Member
Posts: 2614
Offline
I've fixed this and committed it to the source tree.

Posted on: 2/22 12:10
Transfer the post to other applications Transfer


Re: unarc small bug

Joined:
2005/8/17 16:00
From Germany
Group:
Member
Posts: 2206
Offline
Thanks.

Posted on: 2/22 12:52
_________________
AROS - Make code, not war
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
4338
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3887
4 nikolaos
nikolaos
3677
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2614
7 mazze
mazze
2206
8 clusteruk
clusteruk
2066
9 Kalamatee
Kalamatee
2023
10 damocles
damocles
1789
© 2004-2017 AROS Exec