|
@@ -138,6 +138,8 @@ int G__mapset_permissions2(const char *gisdbase, const char *location,
|
|
if (!S_ISDIR(info.st_mode))
|
|
if (!S_ISDIR(info.st_mode))
|
|
return -1;
|
|
return -1;
|
|
|
|
|
|
|
|
+#ifndef SKIP_MAPSET_OWN_CHK
|
|
|
|
+
|
|
#ifndef __MINGW32__
|
|
#ifndef __MINGW32__
|
|
if (info.st_uid != getuid())
|
|
if (info.st_uid != getuid())
|
|
return 0;
|
|
return 0;
|
|
@@ -145,5 +147,7 @@ int G__mapset_permissions2(const char *gisdbase, const char *location,
|
|
return 0;
|
|
return 0;
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#endif
|
|
|
|
+
|
|
return 1;
|
|
return 1;
|
|
}
|
|
}
|