[OTR-dev] pidgin-otr: mode 600 instead of 644
ian at cypherpunks.ca
Tue Jun 17 16:30:20 EDT 2008
On Tue, Jun 17, 2008 at 08:08:18PM +0200, Caspar Clemens Mierau wrote:
> On Tue, Jun 17, 2008 at 11:49:01AM -0400, Ian Goldberg wrote:
> > Thanks! My only concern is what happens when you try to build the
> > Windows version of pidgin-otr with this patch. I suppose we could wrap
> > it in a HAVE_UMASK or something? My Win32 cross-compilation environment
> > isn't with me right now, but I'll check it later on.
> actually I think, the glib stuff is quite Win32 safe. See:
> A wrapper for the POSIX chmod() function. The chmod() function is used
> to set the permissions of a file system object. Note that on Windows the
> file protection mechanism is not at all POSIX-like, and the underlying
> chmod() function in the C library just sets or clears the READONLY
> attribute. It does not touch any ACL. Software that needs to manage file
> permissions on Windows exactly should use the Win32 API."
> So according to the official documentation, using g_chmod under Win32
> won't crash. It only seems to set a readonly flag when removing too much
> "w" flags.
> Actually I even think that you are already fine using g_fopen under
> Win32, but somebody needs to confirm this.
But there's no equivalent for umask, right?
More information about the OTR-dev