File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1795,11 +1795,12 @@ Executed at: {executed_at}"#,
17951795 let now = t ! ( SystemTime :: now( ) . duration_since( SystemTime :: UNIX_EPOCH ) ) ;
17961796 let _ = fs:: rename ( dst, format ! ( "{}-{}" , dst. display( ) , now. as_nanos( ) ) ) ;
17971797 }
1798- let metadata = t ! ( src. symlink_metadata( ) , format!( "src = {}" , src. display( ) ) ) ;
1798+ let mut metadata = t ! ( src. symlink_metadata( ) , format!( "src = {}" , src. display( ) ) ) ;
17991799 let mut src = src. to_path_buf ( ) ;
18001800 if metadata. file_type ( ) . is_symlink ( ) {
18011801 if dereference_symlinks {
18021802 src = t ! ( fs:: canonicalize( src) ) ;
1803+ metadata = t ! ( fs:: metadata( & src) , format!( "target = {}" , src. display( ) ) ) ;
18031804 } else {
18041805 let link = t ! ( fs:: read_link( src) ) ;
18051806 t ! ( self . symlink_file( link, dst) ) ;
You can’t perform that action at this time.
0 commit comments