]> git.proxmox.com Git - cargo.git/commitdiff
handle symlinks correctly in support/paths.rs
authorThom Wiggers <thom@thomwiggers.nl>
Thu, 11 Apr 2019 12:06:19 +0000 (14:06 +0200)
committerThom Wiggers <thom@thomwiggers.nl>
Tue, 30 Jul 2019 07:31:35 +0000 (09:31 +0200)
tests/testsuite/support/paths.rs

index 7dfb65c69a387bc8288dd64a33af072a756c1073..bf3c763de87242733e7f703bdcb52b7dd9fcaad9 100644 (file)
@@ -153,7 +153,7 @@ impl CargoPathExt for Path {
         where
             F: Fn(i64, u32) -> ((i64, u32)),
         {
-            let stat = t!(path.metadata());
+            let stat = t!(path.symlink_metadata());
 
             let mtime = FileTime::from_last_modification_time(&stat);