]> git.saurik.com Git - wxWidgets.git/commitdiff
tried to make umask comment make more sense
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Sep 2008 13:46:45 +0000 (13:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Sep 2008 13:46:45 +0000 (13:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/file.h

index 631f12c3c1d944e42ac109914b5bac014fed6557..6d39f01bda96cc7dad3db58d1d8b0bd2293b6172 100644 (file)
 #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