The Samba-Bugzilla – Attachment 10997 Details for
Bug 11240
Incorrect file size returned in the response of "FILE_SUPERSEDE Create"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Raw patch for master.
supersede_patch (text/plain), 847 bytes, created by
Jeremy Allison
on 2015-04-28 21:39:28 UTC
(
hide
)
Description:
Raw patch for master.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2015-04-28 21:39:28 UTC
Size:
847 bytes
patch
obsolete
>diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c >index 23c1cc2..50dacf7 100644 >--- a/source3/modules/vfs_default.c >+++ b/source3/modules/vfs_default.c >@@ -1870,8 +1870,6 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, off_t > ftruncate extend but ext2 can. */ > > result = ftruncate(fsp->fh->fd, len); >- if (result == 0) >- goto done; > > /* According to W. R. Stevens advanced UNIX prog. Pure 4.3 BSD cannot > extend a file with ftruncate. Provide alternate implementation >@@ -1885,6 +1883,11 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, off_t > if (!NT_STATUS_IS_OK(status)) { > goto done; > } >+ >+ /* We need to update the files_struct after successful ftruncate */ >+ if (result == 0) >+ goto done; >+ > pst = &fsp->fsp_name->st; > > #ifdef S_ISFIFO
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11240
:
10997
|
10998
|
11006
|
11007