[GRASS-SVN] r35484 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jan 18 15:42:28 EST 2009
Author: hamish
Date: 2009-01-18 15:42:28 -0500 (Sun, 18 Jan 2009)
New Revision: 35484
Modified:
grass/trunk/lib/gis/mapset_msc.c
Log:
make it easy to disable mapset owner check with -DSKIP_MAPSET_OWN_CHK
Modified: grass/trunk/lib/gis/mapset_msc.c
===================================================================
--- grass/trunk/lib/gis/mapset_msc.c 2009-01-18 17:33:20 UTC (rev 35483)
+++ grass/trunk/lib/gis/mapset_msc.c 2009-01-18 20:42:28 UTC (rev 35484)
@@ -138,6 +138,8 @@
if (!S_ISDIR(info.st_mode))
return -1;
+#ifndef SKIP_MAPSET_OWN_CHK
+
#ifndef __MINGW32__
if (info.st_uid != getuid())
return 0;
@@ -145,5 +147,7 @@
return 0;
#endif
+#endif
+
return 1;
}
More information about the grass-commit
mailing list