Emptool doesn't deal with relative symlinks

Posted by: peter

Emptool doesn't deal with relative symlinks - 11/02/2002 04:07

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
Posted by: tms13

Re: Emptool doesn't deal with relative symlinks - 11/02/2002 05:07

That looks like it could write the terminating NUL beyond the bounds of targetbuf in the pathological case where rc is PATH_MAX...