Comment 6 for bug 999718

Revision history for this message
Matt Fischer (mfisch) wrote :

Also, I poked through the glib-2.0 source code and it looks like they use 2 args sometimes (well at least in one place) and they pass in 0 when the mode isn't needed.

gio/glocalfileoutputstream.c: fd = g_open (filename, open_flags, mode);
gio/glocalfile.c: fd = g_open (local->filename, O_RDONLY|O_BINARY, 0);
glib/gfileutils.c: * fd = g_open (filename, O_WRONLY);
glib/gkeyfile.c: fd = g_open (path, O_RDONLY, 0);
glib/gkeyfile.c: fd = g_open (file, O_RDONLY, 0);