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:
@@ -27,7 +27,7 @@ dev_t
|
|||||||
dev_for_path(const char *path)
|
dev_for_path(const char *path)
|
||||||
{
|
{
|
||||||
struct stat stat;
|
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)
|
if (status == B_OK)
|
||||||
return stat.st_dev;
|
return stat.st_dev;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user