Changeset 30725


Ignore:
Timestamp:
Mar 25, 2008, 2:56:18 AM (16 years ago)
Author:
martinl
Message:

g.mapset: set LOCATION_NAME and GISDBASE for -l flag (do not ignore location= and gisdbase=)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/general/g.mapset/main.c

    r30713 r30725  
    107107        char **ms;
    108108        int nmapsets;
     109
     110        G__setenv("LOCATION_NAME", location_new);
     111        G__setenv("GISDBASE", gisdbase_new);
     112
    109113        ms = G_available_mapsets();
    110114       
    111115        for (nmapsets = 0; ms[nmapsets]; nmapsets++) {
    112             if (G__mapset_permissions2 (gisdbase_new, location_new,  ms[nmapsets]) > 0) {
     116            if (G__mapset_permissions(ms[nmapsets]) > 0) {
    113117                fprintf(stdout, "%s ", ms[nmapsets]);
    114118            }
Note: See TracChangeset for help on using the changeset viewer.