mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
af8432e692
* prevent infinite loops due to 0 bytes written:
try once more. if we still get 0 as return,
set errno to ENOSPC and return -1 (error)
* replace int by correct types (ssize_t and size_t).
* print a warning log message in case "written < requested to write"
usually this means, that the next call to pwrite will fail
with return value -1 and set errno accordingly.
Note that the former error condition "written != requested to write"
is not a correct error condition of write/pwrite. If this is due
to an error, a subsequent call to (p)write will reveal the cause
(typically "no space left on device" - ENOSPC).
Michael
(This used to be commit
|
||
---|---|---|
.. | ||
appweb | ||
charset | ||
cmdline | ||
compression | ||
crypto | ||
events | ||
gencache | ||
json | ||
ldb | ||
messaging | ||
popt | ||
registry | ||
replace | ||
samba3 | ||
smbreadline | ||
socket | ||
socket_wrapper | ||
stream | ||
talloc | ||
tdb | ||
tdr | ||
tls | ||
util | ||
basic.mk | ||
db_wrap.c | ||
db_wrap.h | ||
gendb.c | ||
version.c |