Explorar o código

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 %!s(int64=16) %!d(string=hai) anos
pai
achega
08d52276eb
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;
 }