mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
from HEAD:
fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>
(This used to be commit bcc633c409
)
This commit is contained in:
parent
bb9c3a01e7
commit
0747016dfc
@ -1888,7 +1888,7 @@ int reply_writebraw(connection_struct *conn, char *inbuf,char *outbuf, int size,
|
||||
DEBUG(3,("writebraw1 fnum=%d start=%.0f num=%d wrote=%d sync=%d\n",
|
||||
fsp->fnum, (double)startpos, (int)numtowrite, (int)nwritten, (int)write_through));
|
||||
|
||||
if (nwritten < numtowrite) {
|
||||
if (nwritten < (ssize_t)numtowrite) {
|
||||
END_PROFILE(SMBwritebraw);
|
||||
return(UNIXERROR(ERRHRD,ERRdiskfull));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user