[gmime-devel] issue with g_mime_multipart_encrypted_decrypt / fsync



Hi all,

I'm trying to use g_mime_multipart_encrypted_decrypt in my app[1], but
it keeps returning NULL without 'err' being set. I'm using GMime 2.6.x

I've debugged this to the function stream_flush in gmime-stream-pipe.c,
where `fsync' returns -1, with errno set to EINVAL. This is called from
gmime-gpg-context.c, around line 1194:
      if (g_mime_stream_flush (passwd) == -1)

Maybe fsync on a pipe is not allowed?

In any case, once I commented out the fsync, things started working.

While debugging this, I found something else, which is probably not
related, but may be worthwhile to :

In http://git.gnome.org/browse/gmime/tree/gmime/gmime-gpg-context.c#n388,
there's a check for UTF8, using string "UTF-8". However, on my
(Debian/sid) system, the locale is "utf8", and thus gmime doesn't
recognize to fix. So, maybe the check should include that as well?


Best wishes,
Dirk.


[1] http://www.djcbsoftware.nl/code/mu

--
Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb djcbsoftware nl           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]