[GRASS-SVN] r66554 - grass/trunk/lib/temporal/lib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 21 03:16:50 PDT 2015


Author: huhabla
Date: 2015-10-21 03:16:50 -0700 (Wed, 21 Oct 2015)
New Revision: 66554

Modified:
   grass/trunk/lib/temporal/lib/connect.c
Log:
temporal library: Ignore the warning of missing mapset ownership

Modified: grass/trunk/lib/temporal/lib/connect.c
===================================================================
--- grass/trunk/lib/temporal/lib/connect.c	2015-10-21 10:09:56 UTC (rev 66553)
+++ grass/trunk/lib/temporal/lib/connect.c	2015-10-21 10:16:50 UTC (rev 66554)
@@ -99,13 +99,16 @@
     ret = G_mapset_permissions2(gisdbase, location, mapset);
     switch (ret) {
     case 0: /* Check if the mapset exists and user is owner */
-        G_warning(_("You don't have permission to access the mapset <%s>"),
+        /* We usppress this warning, since G_mapset_permission does not
+         * check the access privilegs to the mapset of a stranger.
+        G_warning(_("You are not the owner of mapset <%s>"),
                       mapset);
+        */
         break;
     case -1:
         G_warning(_("Mapset <%s> does not exist."),
 	              mapset);
-        break;
+        return ret_val;
     default:
         break;
     }    



More information about the grass-commit mailing list