From: Zygo Blaxell Date: Thu, 13 May 2010 20:53:53 +0000 (-0400) Subject: Make sure we are using the right inode filename X-Git-Tag: dm6-0.20100514~5^2~6 X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=dupemerge;a=commitdiff_plain;h=181753a22ed5f794f52bc049be170dbdccc9e845 Make sure we are using the right inode filename --- diff --git a/dm6 b/dm6 index 8b45f50..2654698 100755 --- a/dm6 +++ b/dm6 @@ -170,7 +170,7 @@ while () { print STDERR "\b"; # Which file are we keeping? - my $keep_file; + my $keep_ino; # If digest link exists, link it to file if ($digest_st) { @@ -180,17 +180,18 @@ while () { # Old, replace input with old file print STDERR '-'; link_files($digest_link, $file); - $keep_file = $digest_link; + $keep_ino = $digest_st->ino; } else { # New, add input to digest print STDERR '+'; link_files($file, $digest_link); - $keep_file = $file; + $keep_ino = $st->ino; } # A link to the inode indicates we are done, so do it last + my $keep_link = prepare_parents("$link_dir/inode", $keep_ino); print STDERR '_'; - link_files($keep_file, $inode_link); + link_files($keep_link, $inode_link); } };