dev_for_path() should resolve symlinks.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8776 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d3fe452749
commit
a52018b53b
@ -27,7 +27,7 @@ dev_t
|
||||
dev_for_path(const char *path)
|
||||
{
|
||||
struct stat stat;
|
||||
int status = _kern_read_stat(-1, path, false, &stat, sizeof(struct stat));
|
||||
int status = _kern_read_stat(-1, path, true, &stat, sizeof(struct stat));
|
||||
if (status == B_OK)
|
||||
return stat.st_dev;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user