From 5b34b57b3f1927f907fafbb70913b23fe6d36b12 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Thu, 13 May 2010 16:41:13 -0400 Subject: [PATCH] Get the right file linked to the inode directory --- dm6 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dm6 b/dm6 index b0ff96b..c6f93d9 100755 --- a/dm6 +++ b/dm6 @@ -156,6 +156,10 @@ while () { undef $digest_st; } } + print STDERR "\b"; + + # Which file are we keeping? + my $keep_file; # If digest link exists, link it to file if ($digest_st) { @@ -165,14 +169,17 @@ while () { # Old, replace input with old file print STDERR '-'; link_files($digest_link, $file); + $keep_file = $digest_link; } else { # New, add input to digest print STDERR '+'; link_files($file, $digest_link); + $keep_file = $file; } # A link to the inode indicates we are done, so do it last - link_files($file, $inode_link); + print STDERR '_'; + link_files($keep_file, $inode_link); } }; -- 2.30.2