X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/blobdiff_plain/7ebcda4d810a5b509fc51766536fa0918ecf8d82..6c32365704be635c38e0a338b727643fa76120f5:/src/eu/alefzero/webdav/FileRequestEntity.java diff --git a/src/eu/alefzero/webdav/FileRequestEntity.java b/src/eu/alefzero/webdav/FileRequestEntity.java index 2924f452..237067c5 100644 --- a/src/eu/alefzero/webdav/FileRequestEntity.java +++ b/src/eu/alefzero/webdav/FileRequestEntity.java @@ -74,7 +74,7 @@ public class FileRequestEntity implements RequestEntity { // TODO(bprzybylski): each mem allocation can throw OutOfMemoryError we need to handle it // globally in some fashionable manner - RandomAccessFile raf = new RandomAccessFile(mFile, "rw"); + RandomAccessFile raf = new RandomAccessFile(mFile, "r"); FileChannel channel = raf.getChannel(); FileLock lock = channel.tryLock(); Iterator it = null;