mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-11 07:56:27 +01:00
Fix PBD::sys::inodes_same to check that paths are on same device
two paths can have the same inode and be on different devices and hence would not be equivalent git-svn-id: svn://localhost/ardour2/branches/3.0@12856 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f4d826047f
commit
5ae32cdfd9
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ inodes_same (const path& a, const path& b)
|
|||
struct stat bB;
|
||||
int const rB = g_stat (b.to_string().c_str(), &bB);
|
||||
|
||||
return (rA == 0 && rB == 0 && bA.st_ino == bB.st_ino);
|
||||
return (rA == 0 && rB == 0 && bA.st_dev == bB.st_dev && bA.st_ino == bB.st_ino);
|
||||
}
|
||||
|
||||
/** Find out if `needle' is a file or directory within the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue