Browse Source

temporal lib: clarify G_mapset_permissions2() output

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@66272 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 9 năm trước cách đây
mục cha
commit
bca60698e2
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lib/temporal/lib/connect.c

+ 2 - 1
lib/temporal/lib/connect.c

@@ -95,9 +95,10 @@ static char *get_mapset_connection_name(const char *mapset, int contype)
     const char *location = G_getenv_nofatal("LOCATION_NAME");
     int ret;
 
+    G_debug(1,"Checking mapset <%s>", mapset);
     ret = G_mapset_permissions2(gisdbase, location, mapset);
     switch (ret) {
-    case 0:
+    case 0: /* Check if the mapset exists and user is owner */
         G_warning(_("You don't have permission to access the mapset <%s>"),
                       mapset);
         break;