Use DEFFILEMODE (which is user/group/other read/writeable by default on *nix)
in smb_open*() when creating msgbase files. smblib wasn't using the same default file creation mode (permissions) as the rest of the Synchronet executables. smblib was creating msgbase files as user read/writeable *only* (no group or other permissions) - so the umask value for the group/other permissions flags had no effect on msgbase files created via smblib. This could lead to permissions issues for other users/groups on *nix systems trying to access (read or write) msgbases. No change for non-*nix systems.
Please register or sign in to comment