mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
Update comments / documentation.
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
parent
6c861b9c51
commit
0646b6cd61
2 changed files with 2 additions and 1 deletions
|
@ -688,6 +688,7 @@ void moveFile(const Path & oldName, const Path & newName)
|
|||
bool isExecutableFileAmbient(const fs::path & exe) {
|
||||
// Check file type, because directory being executable means
|
||||
// something completely different.
|
||||
// `is_regular_file` follows symlinks before checking.
|
||||
return std::filesystem::is_regular_file(exe)
|
||||
&& access(exe.string().c_str(),
|
||||
#ifdef WIN32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue