[MPlayer-dev-eng] [PATCH] fix parsing cookies on win32

Gianluigi Tiesi mplayer at netfarm.it
Thu Feb 12 03:58:38 CET 2015


Hi,

The cookie parser checks whether the file size is equal to
read size, this is not always true on win32 if the cookie
file has windows line endings.

The parser is kind enough to parse cookies files with
windows line endings, but the file should be opened in
binary mode or the check will fail.

The attached patch fixes the problem.

Perhaps please consider to remove the attempt to load
cookies from mozilla profile since nowadays paths are different
and the cookies are not even in a text file.
The function is load_cookies()

Regards

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cookies-dos-eol.diff
Type: text/x-diff
Size: 452 bytes
Desc: not available
URL: <https://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20150212/ff2bc92c/attachment.bin>


More information about the MPlayer-dev-eng mailing list