[GRASS-SVN] r66272 - grass/branches/releasebranch_7_0/lib/temporal/lib

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 21 13:49:31 PDT 2015


Author: neteler
Date: 2015-09-21 13:49:31 -0700 (Mon, 21 Sep 2015)
New Revision: 66272

Modified:
   grass/branches/releasebranch_7_0/lib/temporal/lib/connect.c
Log:
temporal lib: clarify G_mapset_permissions2() output

Modified: grass/branches/releasebranch_7_0/lib/temporal/lib/connect.c
===================================================================
--- grass/branches/releasebranch_7_0/lib/temporal/lib/connect.c	2015-09-21 17:01:11 UTC (rev 66271)
+++ grass/branches/releasebranch_7_0/lib/temporal/lib/connect.c	2015-09-21 20:49:31 UTC (rev 66272)
@@ -95,9 +95,10 @@
     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;



More information about the grass-commit mailing list