Commit: 932949fe497ea13c1c139ead1346656e910afeb2
Parent: 2dca9e438dd380b40b34161c233075fd3b825bf4
Author: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2012-12-04 23:48:32
Tree: 6c76a2dae6b07c40749c1dd63dd22075968eebf2

obexd: Add support for stat files bigger than 2GB on 32-bit systems From stat documentation: "(stat()) path refers to a file whose size cannot be represented in the type off_t. This can occur when an application compiled on a 32-bit platform without -D_FILE_OFFSET_BITS=64 calls stat() on a file whose size exceeds (2<<31)-1 bits." To fix this now size header is omitted when the file is over 32-bit, but it is able to transfer it by using 64-bit variables. In addition to that folder-listing now should report such big sizes properly.

Diffstat

M obexd/client/transfer.c | 5 +++- -
M obexd/plugins/filesystem.c | 7 ++++- - -
M obexd/src/obex-priv.h | 6 +++- - -
M obexd/src/obex.c | 7 ++++- - -

4 files changed, 14 insertions(+), 11 deletions(-)

View Full Diff | Patch