The Samba-Bugzilla – Attachment 3282 Details for
Bug 5452
smbclient "put" always creates zero byte sized files at destination
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
look (text/plain), 477 bytes, created by
Jeremy Allison
on 2008-05-09 00:09:38 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2008-05-09 00:09:38 UTC
Size:
477 bytes
patch
obsolete
>diff --git a/source/lib/xfile.c b/source/lib/xfile.c >index d20a95b..e44a92d 100644 >--- a/source/lib/xfile.c >+++ b/source/lib/xfile.c >@@ -263,13 +263,13 @@ int x_fflush(XFILE *f) > > if (f->flags & X_FLAG_ERROR) return -1; > >+ if (f->bufused == 0 || !f->buf) return 0; >+ > if ((f->open_flags & O_ACCMODE) != O_WRONLY) { > errno = EINVAL; > return -1; > } > >- if (f->bufused == 0 || !f->buf) return 0; >- > ret = write(f->fd, f->buf, f->bufused); > if (ret == -1) return -1; >
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 5452
: 3282