OSDN Git Service

obexd: Update the file offset to the beginning after writing to the file
authorSrinivasa Ragavan <srinivasa.ragavan.venkateswaran@intel.com>
Thu, 4 Oct 2012 14:22:37 +0000 (19:52 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:49:05 +0000 (22:49 +0100)
commit3ab485ec080ceeb9d300498326d4e3082fc95153
tree034cb48f265b8fe22bf33efe023dedf4f49514bd
parenta103426e51aaeb472e669962f5cac4b1274176f5
obexd: Update the file offset to the beginning after writing to the file

When the transfer file is opened in O_RDWR mode, just after the contents are
written to the file, the file offset has to be set to the beginning of the
file. If not subsequent read fails. This patch fixes this.
obexd/client/transfer.c