From: Fabian Groffen Date: Thu, 10 Apr 2008 12:53:50 +0000 (-0000) Subject: Fix a bug where hard links would cause imaginary paths due to not properly cleaning up X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=83d38973f3bb492bd9787c904c92b05f6be9b2d1;p=portage.git Fix a bug where hard links would cause imaginary paths due to not properly cleaning up svn path=/main/branches/prefix/; revision=9801 --- diff --git a/src/chpathtool.c b/src/chpathtool.c index 4a2247db9..f2c92b7bb 100644 --- a/src/chpathtool.c +++ b/src/chpathtool.c @@ -281,7 +281,10 @@ int dirwalk(char *src, char *srcp, char *trg, char *trgp) { hl->next = NULL; } else { /* don't "copy" the file, we already made a hard - * link to it */ + * link to it, just restore modified path */ + st = srcp; + tt = trgp; + *st = *tt = '\0'; continue; } }