"fixed stream open mode 'rb' was treated as a write mode: now 'b'=binary is ignored, as all operations are binary"

This commit is contained in:
Ralf Becker 2008-10-10 17:00:03 +00:00
parent 4c6dffcc2d
commit 9b4e06c998

View File

@ -168,7 +168,7 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper
$dir = egw_vfs::dirname($url); $dir = egw_vfs::dirname($url);
$this->opened_path = $path; $this->opened_path = $path;
$this->opened_mode = $mode; $this->opened_mode = $mode = str_replace('b','',$mode); // we are always binary, like every Linux system
$this->opened_stream = null; $this->opened_stream = null;
if (!($stat = self::url_stat($path,0)) || $mode[0] == 'x') // file not found or file should NOT exist if (!($stat = self::url_stat($path,0)) || $mode[0] == 'x') // file not found or file should NOT exist