mirror of
https://github.com/NixOS/nix
synced 2025-07-05 12:21:48 +02:00
Fix build to use CanonPath in new FSO sinks
This commit is contained in:
parent
86420753ec
commit
4fd8f19ecf
6 changed files with 30 additions and 24 deletions
|
@ -51,7 +51,7 @@ struct ExtendedFileSystemObjectSink : virtual FileSystemObjectSink
|
|||
* Create a hard link. The target must be the path of a previously
|
||||
* encountered file relative to the root of the FSO.
|
||||
*/
|
||||
virtual void createHardlink(const Path & path, const CanonPath & target) = 0;
|
||||
virtual void createHardlink(const CanonPath & path, const CanonPath & target) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -196,7 +196,7 @@ time_t unpackTarfileToSink(TarArchive & archive, ExtendedFileSystemObjectSink &
|
|||
lastModified = std::max(lastModified, archive_entry_mtime(entry));
|
||||
|
||||
if (auto target = archive_entry_hardlink(entry)) {
|
||||
parseSink.createHardlink(path, CanonPath(target));
|
||||
parseSink.createHardlink(cpath, CanonPath(target));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue