Author: AlbrechtS
Date: 2010-12-03 09:40:05 -0800 (Fri, 03 Dec 2010)
New Revision: 7945
Log:
Another fix for Fl_Preferences when creating a "user data" path for system
preferences (STR #2465).


Modified:
   branches/branch-1.3/src/Fl_Preferences.cxx

Modified: branches/branch-1.3/src/Fl_Preferences.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Preferences.cxx  2010-12-03 16:41:45 UTC (rev 
7944)
+++ branches/branch-1.3/src/Fl_Preferences.cxx  2010-12-03 17:40:05 UTC (rev 
7945)
@@ -1353,6 +1353,12 @@
   if ( !s ) return 0;
   *s = 0;
   char ret = fl_make_path( path );
+#if !(defined(__APPLE__) || defined(WIN32))
+  // unix: make sure that system prefs dir. is user-readable
+  if (strncmp(path, "/etc/fltk/", 10) == 0) {
+    fl_chmod(path, 0755); // rwxr-xr-x
+  }
+#endif
   strcpy( s, "/" );
   return ret;
 }

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to