mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 03:06:08 +01:00
Write can be called without cookie (in the CreateSymlink() case for example).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30907 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
41b1980691
commit
5740b42f36
@ -477,9 +477,11 @@ status_t
|
||||
OverlayInode::Write(void *_cookie, off_t position, const void *buffer,
|
||||
size_t *length)
|
||||
{
|
||||
open_cookie *cookie = (open_cookie *)_cookie;
|
||||
if (cookie->open_mode & O_APPEND)
|
||||
position = fStat.st_size;
|
||||
if (_cookie != NULL) {
|
||||
open_cookie *cookie = (open_cookie *)_cookie;
|
||||
if (cookie->open_mode & O_APPEND)
|
||||
position = fStat.st_size;
|
||||
}
|
||||
|
||||
// find insertion point
|
||||
write_buffer **link = &fWriteBuffers;
|
||||
|
Loading…
x
Reference in New Issue
Block a user