Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#69602 - 11/02/2002 04:07 Emptool doesn't deal with relative symlinks
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4172
Loc: Cambridge, England
The "upload -p -r" command in Emptool attempts to upload each MP3 only once, even if it's symlinked from several places. But this symlink following is incomplete and buggy; it won't work on relative symlinks. The attached patch (to 2.0beta11 emptool, but I don't think emptool has changed for several betas now) fixes this. I thought I'd let you all know as a patch, to tide you over until the next beta.

Peter


Attachments
67827-emptool-2.0b11-diff1 (118 downloads)


Top
#69603 - 11/02/2002 05:07 Re: Emptool doesn't deal with relative symlinks [Re: peter]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
That looks like it could write the terminating NUL beyond the bounds of targetbuf in the pathological case where rc is PATH_MAX...
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top