write_overlay: readlink behavior change
Change-Id: I036f3e7f84e4a771846482fe81c2db4c4d718aef Reviewed-on: https://review.haiku-os.org/c/haiku/+/2754 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
bc231fc782
commit
3966c60139
@@ -1059,7 +1059,9 @@ OverlayInode::ReadSymlink(char *buffer, size_t *bufferSize)
|
|||||||
if (!S_ISLNK(fStat.st_mode))
|
if (!S_ISLNK(fStat.st_mode))
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
return Read(NULL, 0, buffer, bufferSize, false, NULL);
|
status_t result = Read(NULL, 0, buffer, bufferSize, false, NULL);
|
||||||
|
*bufferSize = fStat.st_size;
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fSuperVnode.ops->read_symlink == NULL)
|
if (fSuperVnode.ops->read_symlink == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user