diff --git a/include/wx/file.h b/include/wx/file.h index 631f12c3c1..6d39f01bda 100644 --- a/include/wx/file.h +++ b/include/wx/file.h @@ -39,9 +39,11 @@ #define wxS_IWOTH 00002 #define wxS_IXOTH 00001 -// default mode for the new files: corresponds to umask 022 -#define wxS_DEFAULT (wxS_IRUSR | wxS_IWUSR | wxS_IRGRP | wxS_IWGRP |\ - wxS_IROTH | wxS_IWOTH) +// default mode for the new files: allow reading/writing them to everybody but +// the effective file mode will be set after anding this value with umask and +// so won't include wxS_IW{GRP,OTH} for the default 022 umask value +#define wxS_DEFAULT \ + (wxS_IRUSR | wxS_IWUSR | wxS_IRGRP | wxS_IWGRP | wxS_IROTH | wxS_IWOTH) // ---------------------------------------------------------------------------- // class wxFile: raw file IO