Преглед изворни кода

make it easy to disable mapset owner check with -DSKIP_MAPSET_OWN_CHK

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35484 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman пре 16 година
родитељ
комит
08d52276eb
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      lib/gis/mapset_msc.c

+ 4 - 0
lib/gis/mapset_msc.c

@@ -138,6 +138,8 @@ int G__mapset_permissions2(const char *gisdbase, const char *location,
     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 @@ int G__mapset_permissions2(const char *gisdbase, const char *location,
 	return 0;
 #endif
 
+#endif
+
     return 1;
 }